上传页面工具代码

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: { HeroGetSpecifiedReq: {
fields: { fields: {
heroCoinfigID: { 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: { HeroDrawCardReq: {
fields: { fields: {
drawCount: { drawType: {
type: "int32", type: "int32",
id: 1 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: { DB_UserItemData: {
fields: { fields: {
gridId: { gridId: {
@ -1424,7 +1412,20 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
} }
}, },
ItemsUseItemResp: { ItemsUseItemResp: {
fields: {} fields: {
GridId: {
type: "string",
id: 1
},
Amount: {
type: "uint32",
id: 2
},
issucc: {
type: "bool",
id: 3
}
}
}, },
ItemsSellItemReq: { ItemsSellItemReq: {
fields: { fields: {
@ -1444,9 +1445,17 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
}, },
ItemsSellItemResp: { ItemsSellItemResp: {
fields: { fields: {
Item: { GridId: {
type: "DB_UserItemData", type: "string",
id: 1 id: 1
},
Amount: {
type: "uint32",
id: 2
},
issucc: {
type: "bool",
id: 3
} }
} }
}, },

View File

@ -123,12 +123,6 @@ message HeroLockResp {
DBHero hero = 1; // DBHero hero = 1; //
} }
//
message HeroAddNewHeroPush {
DBHero hero = 1; //
int32 count = 2; //
}
// //
message HeroGetSpecifiedReq { message HeroGetSpecifiedReq {
int32 heroCoinfigID = 1; // ID int32 heroCoinfigID = 1; // ID
@ -141,13 +135,14 @@ message HeroGetSpecifiedResp {
DBHero hero = 1; // DBHero hero = 1; //
} }
message HeroDelHeroPush { map<string, int32> heros = 1; }
// //
message HeroDrawCardReq { message HeroDrawCardReq {
int32 drawCount = 1; // , int32 drawType = 1; // drawCardCost表
} }
message HeroDrawCardResp { message HeroDrawCardResp {
repeated int32 heroes = 1; // configID 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 //sailitem
message ItemsSellItemReq { message ItemsSellItemReq {
@ -35,5 +39,7 @@ message ItemsSellItemReq {
// //
message ItemsSellItemResp { 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) let keys = Object.keys(this.subSelect.reqproto.fields)
for (const v of keys) { for (const v of keys) {
let rule = this.subSelect.reqproto.fields[v].rule 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 ftype = this.subSelect.reqproto.fields[v].type
let range = [] let range = []
let fvalue = null let fvalue = null
if (!rule) {
if (!rule && !keyType) {
switch (ftype) { switch (ftype) {
case 'int32': case 'int32':
case 'int64': case 'int64':
@ -378,7 +380,6 @@ export default defineComponent({
fvalue = {} fvalue = {}
} }
} }
break break
} }
} else { } else {