diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index 2cc5e3d..53cdd40 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -2257,13 +2257,11 @@ func init() { state = msg.GetState() player := PlayerMgrSington.GetPlayerBySnId(info.SnId) - logger.Logger.Info("api /api/pay/CallbackPayment player = ", player) - if player == nil || (player != nil && !player.IsOnLine()) { - if info.State == 1 { + if player == nil { + if msg.State == 1 { state = 3 } } - logger.Logger.Info("api /api/pay/CallbackPayment state = ", state) task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} { err := model.UpdateDbShopState(msg.Platform, msg.OrderId, state) if err != nil {