下分多次请求多次返回bug
This commit is contained in:
parent
c1aeca1b12
commit
2141650d88
|
@ -3043,7 +3043,7 @@ func init() {
|
|||
|
||||
tNode.TransRep.RetFiels = jsonDataRsp
|
||||
tNode.Resume()
|
||||
}), "/api/platform/upscore").Start()
|
||||
}), "/api/platform/upscore").StartByFixExecutor("UserName:" + msg.Username)
|
||||
} else {
|
||||
//玩家不在线
|
||||
var acc *model.Account
|
||||
|
@ -3113,7 +3113,7 @@ func init() {
|
|||
|
||||
tNode.TransRep.RetFiels = jsonDataRsp
|
||||
tNode.Resume()
|
||||
}), "/api/platform/upscore").Start()
|
||||
}), "/api/platform/upscore").StartByFixExecutor("UserName:" + msg.Username)
|
||||
}
|
||||
|
||||
return common.ResponseTag_TransactYield, jsonDataRsp
|
||||
|
@ -3176,6 +3176,7 @@ func init() {
|
|||
pack.Code = int(webapiproto.TagCode_FAILED)
|
||||
pack.Message = data.(error).Error()
|
||||
} else {
|
||||
logger.Logger.Tracef("/api/platform/downscore player online snid:%v, player.Coin:%v", player.SnId, player.Coin)
|
||||
player.AddCoin(addcoin, 0, common.GainWayPlatformDownScore, "platform", "平台下分")
|
||||
player.SendDiffData()
|
||||
}
|
||||
|
@ -3189,7 +3190,7 @@ func init() {
|
|||
|
||||
tNode.TransRep.RetFiels = jsonDataRsp
|
||||
tNode.Resume()
|
||||
}), "/api/platform/downscore").Start()
|
||||
}), "/api/platform/downscore").StartByFixExecutor("UserName:" + msg.Username)
|
||||
} else {
|
||||
//玩家不在线
|
||||
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} {
|
||||
|
@ -3208,6 +3209,8 @@ func init() {
|
|||
return nil
|
||||
}
|
||||
|
||||
logger.Logger.Tracef("/api/platform/downscore player not online findPlayerSnid:%v, findPlayer.Coin:%v", findPlayer.SnId, findPlayer.Coin)
|
||||
|
||||
//增加帐变记录
|
||||
coinlogex := model.NewCoinLogEx(&model.CoinLogParam{
|
||||
Platform: findPlayer.Platform,
|
||||
|
@ -3265,7 +3268,7 @@ func init() {
|
|||
|
||||
tNode.TransRep.RetFiels = jsonDataRsp
|
||||
tNode.Resume()
|
||||
}), "/api/platform/downscore").Start()
|
||||
}), "/api/platform/downscore").StartByFixExecutor("UserName:" + msg.Username)
|
||||
}
|
||||
return common.ResponseTag_TransactYield, jsonDataRsp
|
||||
}))
|
||||
|
|
Loading…
Reference in New Issue