diff --git a/common/constant.go b/common/constant.go index 4d3e425..4bd7dad 100644 --- a/common/constant.go +++ b/common/constant.go @@ -268,6 +268,7 @@ const ( GainWayItemTaskEveryDay = 81 //每日任务 GainWayItemWeekActive = 82 //周活跃奖励 GainWayContinueSign = 83 //累计签到 + GainWayBackend = 84 // 后台操作 ) // 后台选择 金币变化类型 的充值 类型id号起始 diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index 6f66d41..f8bc320 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -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()