fix 订单发货重复

This commit is contained in:
sk 2025-01-09 15:59:26 +08:00
parent 00759f960c
commit 2f9f2513c6
1 changed files with 2 additions and 2 deletions

View File

@ -2272,7 +2272,7 @@ func init() {
state = msg.GetState() state = msg.GetState()
player := PlayerMgrSington.GetPlayerBySnId(info.SnId) player := PlayerMgrSington.GetPlayerBySnId(info.SnId)
logger.Logger.Info("CallbackPayment player", player) logger.Logger.Info("CallbackPayment player", player)
if player == nil || (player != nil && player.IsOffline()) { if player == nil || player.IsOffline() {
if msg.State == 1 { if msg.State == 1 {
state = 3 state = 3
} }
@ -2290,7 +2290,7 @@ func init() {
retFail("购买记录状态修改失败") retFail("购买记录状态修改失败")
return return
} }
if player != nil || (player != nil && player.IsOffline()) { if player != nil && !player.IsOffline() {
player.DoShopInfo(info, false) player.DoShopInfo(info, false)
// 邀请积分 // 邀请积分
InviteTask(msg.Platform, player.PSnId, info.SnId, common.InviteScoreTypePay, int64(info.ConsumeNum)) InviteTask(msg.Platform, player.PSnId, info.SnId, common.InviteScoreTypePay, int64(info.ConsumeNum))