修复绑定手机积分和竞技馆对局记录
This commit is contained in:
parent
2b0f7b1e28
commit
96f87f8b62
|
@ -2662,7 +2662,7 @@ func CSBindTel(s *netlib.Session, packetId int, data interface{}, sid int64) err
|
|||
SaveInviteScore(&model.InviteScore{
|
||||
Platform: p.Platform,
|
||||
SnId: p.SnId,
|
||||
InviteSnId: p.InviterId,
|
||||
InviteSnId: p.PSnId,
|
||||
Tp: common.InviteScoreTypeBindTel,
|
||||
Score: cfg.GetBindTelScore(),
|
||||
Ts: time.Now().Unix(),
|
||||
|
|
|
@ -459,6 +459,17 @@ func CSBindInvite(s *netlib.Session, packetid int, data interface{}, sid int64)
|
|||
Ts: now.Unix(),
|
||||
Money: 0,
|
||||
})
|
||||
if len(p.Tel) > 0 {
|
||||
SaveInviteScore(&model.InviteScore{
|
||||
Platform: p.Platform,
|
||||
SnId: p.SnId,
|
||||
InviteSnId: inviteSnId,
|
||||
Tp: common.InviteScoreTypeBindTel,
|
||||
Score: cfg.GetBindTelScore(),
|
||||
Ts: time.Now().Unix(),
|
||||
Money: 0,
|
||||
})
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}), task.CompleteNotifyWrapper(func(i interface{}, t task.Task) {
|
||||
|
|
Loading…
Reference in New Issue