上传页面工具代码

This commit is contained in:
liwei1dao 2022-07-22 22:47:35 +08:00
parent 1b493b6e76
commit 6313a46159
4 changed files with 50 additions and 39 deletions

View File

@ -1283,18 +1283,6 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
HeroAddNewHeroPush: {
fields: {
hero: {
type: "DBHero",
id: 1
},
count: {
type: "int32",
id: 2
}
}
},
HeroGetSpecifiedReq: {
fields: {
heroCoinfigID: {
@ -1323,18 +1311,9 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
HeroDelHeroPush: {
fields: {
heros: {
keyType: "string",
type: "int32",
id: 1
}
}
},
HeroDrawCardReq: {
fields: {
drawCount: {
drawType: {
type: "int32",
id: 1
}
@ -1349,6 +1328,15 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
}
},
HeroChangePush: {
fields: {
list: {
rule: "repeated",
type: "DBHero",
id: 1
}
}
},
DB_UserItemData: {
fields: {
gridId: {
@ -1424,7 +1412,20 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}
},
ItemsUseItemResp: {
fields: {}
fields: {
GridId: {
type: "string",
id: 1
},
Amount: {
type: "uint32",
id: 2
},
issucc: {
type: "bool",
id: 3
}
}
},
ItemsSellItemReq: {
fields: {
@ -1444,9 +1445,17 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
},
ItemsSellItemResp: {
fields: {
Item: {
type: "DB_UserItemData",
GridId: {
type: "string",
id: 1
},
Amount: {
type: "uint32",
id: 2
},
issucc: {
type: "bool",
id: 3
}
}
},

View File

@ -123,12 +123,6 @@ message HeroLockResp {
DBHero hero = 1; //
}
//
message HeroAddNewHeroPush {
DBHero hero = 1; //
int32 count = 2; //
}
//
message HeroGetSpecifiedReq {
int32 heroCoinfigID = 1; // ID
@ -141,13 +135,14 @@ message HeroGetSpecifiedResp {
DBHero hero = 1; //
}
message HeroDelHeroPush { map<string, int32> heros = 1; }
//
message HeroDrawCardReq {
int32 drawCount = 1; // ,
int32 drawType = 1; // drawCardCost表
}
message HeroDrawCardResp {
repeated int32 heroes = 1; // configID
}
}
//
message HeroChangePush { repeated DBHero list = 1; }

View File

@ -24,7 +24,11 @@ message ItemsUseItemReq {
}
//使
message ItemsUseItemResp {}
message ItemsUseItemResp {
string GridId = 1; //Id
uint32 Amount = 2; //使
bool issucc = 3; //
}
//sailitem
message ItemsSellItemReq {
@ -35,5 +39,7 @@ message ItemsSellItemReq {
//
message ItemsSellItemResp {
DB_UserItemData Item = 1; //
string GridId = 1; //Id
uint32 Amount = 2; //使
bool issucc = 3; //
}

View File

@ -338,10 +338,12 @@ export default defineComponent({
let keys = Object.keys(this.subSelect.reqproto.fields)
for (const v of keys) {
let rule = this.subSelect.reqproto.fields[v].rule
let keyType = this.subSelect.reqproto.fields[v].keyType
let ftype = this.subSelect.reqproto.fields[v].type
let range = []
let fvalue = null
if (!rule) {
if (!rule && !keyType) {
switch (ftype) {
case 'int32':
case 'int64':
@ -378,7 +380,6 @@ export default defineComponent({
fvalue = {}
}
}
break
}
} else {