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,