From bfbe02be664d2261da3e5863499932456386d728 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Tue, 28 May 2024 14:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E5=85=B7=E5=8F=98=E5=8C=96=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=90=8E=E5=8F=B0=E6=93=8D=E4=BD=9C=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/constant.go | 1 + worldsrv/trascate_webapi.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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()