Compare commits
2 Commits
b4427a1459
...
655fe2ff96
Author | SHA1 | Date |
---|---|---|
|
655fe2ff96 | |
|
087bff7a13 |
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue