Reapply "推币机配置修改"

This reverts commit c6ec268dc4.
This commit is contained in:
DESKTOP-45ANQ2C\unis 2025-01-17 14:32:17 +08:00
parent c6ec268dc4
commit 17c6f74c3e
1 changed files with 13 additions and 0 deletions

View File

@ -2992,6 +2992,19 @@ func init() {
player.AddDiamond(addCoin, 0, 5555, "platform", "dubeg加钻石") player.AddDiamond(addCoin, 0, 5555, "platform", "dubeg加钻石")
player.SendDiffData() player.SendDiffData()
jsonRet.Data.Count = player.Diamond 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) jsonDataRsp, err = json.Marshal(jsonRet)