Compare commits

...

2 Commits

Author SHA1 Message Date
sk 655fe2ff96 Merge branch 'develop' into release 2024-06-29 11:35:41 +08:00
sk 087bff7a13 邀请活动充值加积分 2024-06-29 11:33:03 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ type BindScoreSvc struct {
func CheckInviteScore(req *model.InviteScore) (b bool, err error) { func CheckInviteScore(req *model.InviteScore) (b bool, err error) {
logger.Logger.Tracef("SaveInviteScore req:%+v", *req) logger.Logger.Tracef("SaveInviteScore req:%+v", *req)
if req.InviteSnId == 0 || req.SnId == 0 { if req.SnId == 0 {
return false, nil 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) c := InviteScoreCollection(req.Platform)
if c == nil { if c == nil {

View File

@ -4383,7 +4383,7 @@ func (this *Player) PhoneLotteryTask(taskId int32, num int64) {
} }
func InviteTask(platform string, psnid, snid, scoreType int32, n int64) { func InviteTask(platform string, psnid, snid, scoreType int32, n int64) {
if psnid <= 0 || snid <= 0 { if snid <= 0 {
return return
} }
cfg := PlatformMgrSingleton.GetConfig(platform).ActInviteConfig cfg := PlatformMgrSingleton.GetConfig(platform).ActInviteConfig