From 2f9f2513c6ab5722b22113ec20fe2ea0b6d8adaf Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Thu, 9 Jan 2025 15:59:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=AE=A2=E5=8D=95=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/trascate_webapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index ea89290..c530b72 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -2272,7 +2272,7 @@ func init() { state = msg.GetState() player := PlayerMgrSington.GetPlayerBySnId(info.SnId) logger.Logger.Info("CallbackPayment player", player) - if player == nil || (player != nil && player.IsOffline()) { + if player == nil || player.IsOffline() { if msg.State == 1 { state = 3 } @@ -2290,7 +2290,7 @@ func init() { retFail("购买记录状态修改失败") return } - if player != nil || (player != nil && player.IsOffline()) { + if player != nil && !player.IsOffline() { player.DoShopInfo(info, false) // 邀请积分 InviteTask(msg.Platform, player.PSnId, info.SnId, common.InviteScoreTypePay, int64(info.ConsumeNum))