json 上传

This commit is contained in:
meixiongfeng 2022-08-15 18:25:47 +08:00
parent afc2468ef6
commit 9a040f7b94
2 changed files with 31 additions and 1 deletions

View File

@ -79,6 +79,31 @@
"t": "10005",
"n": 1
},
"base_pool_10cost": {
"a": "item",
"t": "10001",
"n": 10
},
"camp1_pool_10cost": {
"a": "item",
"t": "10002",
"n": 10
},
"camp2_pool_10cost": {
"a": "item",
"t": "10003",
"n": 10
},
"camp3_pool_10cost": {
"a": "item",
"t": "10004",
"n": 10
},
"camp4_pool_10cost": {
"a": "item",
"t": "10005",
"n": 10
},
"camp1_pool1": "camp1_pool",
"camp2_pool1": "camp2_pool",
"camp3_pool1": "camp3_pool",
@ -109,6 +134,8 @@
"camp_pool_star3": 9000,
"camp_pool_star4": 900,
"camp_pool_star5": 100,
"gourmet": 500
"gourmet": 500,
"smithy_maxplayer": 20,
"smithy_maxtime": 36000
}
]

View File

@ -32,6 +32,9 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
)
req.DrawCount = 10 // test
cfgDraw = this.module.configure.GetGlobalConf() // 读取抽卡配置文件
if cfgDraw == nil {
return
}
code = this.DrawCardCheck(session, req)
if code != pb.ErrorCode_Success {
return