道具变化添加后台操作类型

This commit is contained in:
sk 2024-05-28 14:49:20 +08:00
parent 3feb728527
commit bfbe02be66
2 changed files with 4 additions and 3 deletions

View File

@ -268,6 +268,7 @@ const (
GainWayItemTaskEveryDay = 81 //每日任务
GainWayItemWeekActive = 82 //周活跃奖励
GainWayContinueSign = 83 //累计签到
GainWayBackend = 84 // 后台操作
)
// 后台选择 金币变化类型 的充值 类型id号起始

View File

@ -4360,13 +4360,13 @@ func init() {
p := PlayerMgrSington.GetPlayerBySnId(msg.GetSnid())
if p != nil {
//获取道具Id
BagMgrSingleton.AddItems(p, items, 0, common.GainWay_Exchange, "system", "商城兑换", 0, 0, false)
BagMgrSingleton.AddItems(p, items, 0, common.GainWayBackend, "system", "后台操作", 0, 0, false)
pack.Tag = webapiproto.TagCode_SUCCESS
pack.Msg = "AddItem success"
return common.ResponseTag_Ok, pack
} else {
BagMgrSingleton.AddItemsOffline(msg.Platform, msg.Snid, items, common.GainWay_Pay,
"system", "", 0, 0, false, func(err error) {
BagMgrSingleton.AddItemsOffline(msg.Platform, msg.Snid, items, common.GainWayBackend,
"system", "后台操作", 0, 0, false, func(err error) {
if err != nil {
pack.Tag = webapiproto.TagCode_FAILED
pack.Msg = "AddItem failed:" + err.Error()