From 4c8273031b4f2084c27b8af4f50516375bfddd91 Mon Sep 17 00:00:00 2001 From: "DESKTOP-45ANQ2C\\unis" <121212121@qq.com> Date: Thu, 2 Jan 2025 11:10:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=98=E9=92=B1=E7=BD=90=E9=A2=86=E5=8F=96?= =?UTF-8?q?=E9=92=BB=E7=9F=B3=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/trascate_webapi.go | 6 +++--- worldsrv/welfmgr.go | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index cd7913b..4e22871 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -2945,7 +2945,7 @@ func init() { var msg *webapi.DebugTestReq err := json.Unmarshal(params, &msg) if err != nil { - logger.Logger.Error("Unmarshal webapi.PlatfromUpScoreReq error:", err) + logger.Logger.Error("Unmarshal webapi.DebugTestReq error:", err) return common.ResponseTag_ParamError, pack } @@ -2955,7 +2955,7 @@ func init() { Message: "未知错误", } - logger.Logger.Tracef("/api/platform/debug upScoreReqInfo%v", msg) + logger.Logger.Tracef("/api/platform/debug DebugTestReq%v", msg) player := PlayerMgrSington.GetPlayerBySnId(msg.Snid) //玩家在线 @@ -2967,7 +2967,7 @@ func init() { if msg.Rpc == 1 { addCoin, _ := strconv.ParseInt(msg.Count, 10, 64) - player.AddCoin(addCoin, 0, 5555, "platform", "debug加钻石") + player.AddCoin(addCoin, 0, 5555, "platform", "debug加金币") player.SendDiffData() jsonRet.Data.Count = player.Coin } else if msg.Rpc == 2 { diff --git a/worldsrv/welfmgr.go b/worldsrv/welfmgr.go index 502106a..fe42d65 100644 --- a/worldsrv/welfmgr.go +++ b/worldsrv/welfmgr.go @@ -1118,7 +1118,7 @@ func (this *WelfareMgr) BlindBoxInfo(p *Player, bid int32) { if cyc == 1 || blindBox.Cycle == model.WelfareOpen { p.WelfData.BlindBoxId = 0 } - } // == 1代表当日循环 + } // == 1代表当日循环 if p.WelfData.BlindBoxId == 0 { // 未领取过发随机Date idx := bid @@ -2064,15 +2064,15 @@ func (this *WelfareMgr) DiamondBankTakeCoin(p *Player) (retItemArr []*model.Item Num: 1, }) + retItemArr = append(retItemArr, &model.Item{ + ItemId: common.ItemIDDiamond, + ItemNum: addDiamond, + }) + // 发放奖励道具 if infoData.DiamondExc != nil { var items []*model.Item - retItemArr = append(retItemArr, &model.Item{ - ItemId: common.ItemIDDiamond, - ItemNum: addDiamond, - }) - for _, v := range infoData.DiamondExc { items = append(items, &model.Item{ ItemId: v.ItemId,