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)