From 17c6f74c3e58d18f39f65dfa14d856356c7b40a9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-45ANQ2C\\unis" <121212121@qq.com> Date: Fri, 17 Jan 2025 14:32:17 +0800 Subject: [PATCH] =?UTF-8?q?Reapply=20"=E6=8E=A8=E5=B8=81=E6=9C=BA=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=AE=E6=94=B9"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit c6ec268dc44afcf1264f4fe7bbed90eb86545811. --- worldsrv/trascate_webapi.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index 3581b88..a4564f8 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -2992,6 +2992,19 @@ func init() { player.AddDiamond(addCoin, 0, 5555, "platform", "dubeg加钻石") player.SendDiffData() jsonRet.Data.Count = player.Diamond + } else if msg.Rpc == 12 { + items := []*model.Item{{ + ItemId: int32(msg.Bankcoin), + ItemNum: int64(msg.Daybuytimes), + }} + BagMgrSingleton.AddItems(&model.AddItemParam{ + Platform: player.Platform, + SnId: player.SnId, + Change: items, + GainWay: common.GainWay_ItemUse, + Operator: "system", + Remark: "测试", + }) } jsonDataRsp, err = json.Marshal(jsonRet)