From 087bff7a132673576dc63c386f85397fba4dcd4b Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Sat, 29 Jun 2024 11:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=80=E8=AF=B7=E6=B4=BB=E5=8A=A8=E5=85=85?= =?UTF-8?q?=E5=80=BC=E5=8A=A0=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbproxy/svc/l_invitescore.go | 4 ++-- worldsrv/player.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dbproxy/svc/l_invitescore.go b/dbproxy/svc/l_invitescore.go index bd4dc30..fc6a69b 100644 --- a/dbproxy/svc/l_invitescore.go +++ b/dbproxy/svc/l_invitescore.go @@ -46,7 +46,7 @@ type BindScoreSvc struct { func CheckInviteScore(req *model.InviteScore) (b bool, err error) { logger.Logger.Tracef("SaveInviteScore req:%+v", *req) - if req.InviteSnId == 0 || req.SnId == 0 { + if req.SnId == 0 { return false, nil } @@ -75,7 +75,7 @@ func CheckInviteScore(req *model.InviteScore) (b bool, err error) { } // 充值成功记录 - if req.Tp == common.InviteScoreTypePay || req.Tp == common.InviteScoreTypeRecharge { + if (req.Tp == common.InviteScoreTypePay || req.Tp == common.InviteScoreTypeRecharge) && req.InviteSnId > 0 { // 是否已经记录过 c := InviteScoreCollection(req.Platform) if c == nil { diff --git a/worldsrv/player.go b/worldsrv/player.go index 515f5f5..6bb4f45 100644 --- a/worldsrv/player.go +++ b/worldsrv/player.go @@ -4383,7 +4383,7 @@ func (this *Player) PhoneLotteryTask(taskId int32, num int64) { } func InviteTask(platform string, psnid, snid, scoreType int32, n int64) { - if psnid <= 0 || snid <= 0 { + if snid <= 0 { return } cfg := PlatformMgrSingleton.GetConfig(platform).ActInviteConfig