后台增加添加道具接口

This commit is contained in:
by 2024-05-16 11:59:52 +08:00
parent 2ecbc2b1cb
commit 5eb29259c1
1 changed files with 2 additions and 2 deletions

View File

@ -4536,6 +4536,8 @@ func init() {
if p != nil {
//获取道具Id
BagMgrSingleton.AddItems(p, items, 0, common.GainWay_Exchange, "system", "商城兑换", 0, 0, false)
pack.Tag = webapiproto.TagCode_SUCCESS
pack.Msg = "AddItem success"
} else {
BagMgrSingleton.AddItemsOffline(msg.Platform, msg.Snid, items, common.GainWay_Pay,
"system", "", 0, 0, false, func(err error) {
@ -4550,8 +4552,6 @@ func init() {
tNode.Resume()
})
}
pack.Tag = webapiproto.TagCode_SUCCESS
pack.Msg = "AddItem success"
return common.ResponseTag_TransactYield, pack
}))
}