修复竞技馆抽奖必中玩家昵称错误

This commit is contained in:
sk 2024-10-29 11:17:50 +08:00
parent cc8df988bd
commit ca8a8dfb7e
1 changed files with 9 additions and 9 deletions

View File

@ -309,6 +309,15 @@ func (l *LotteryData) Done() {
if code != nil && isMust {
code.SnId = awardPlayer.SnId
}
if code == nil && isMust {
code = &model.LotteryCode{
Platform: l.Platform,
SnId: awardPlayer.SnId,
CId: l.CId,
StartTs: l.StartTs,
Code: fmt.Sprintf("%d", l.TotalCode),
}
}
// 查询玩家消耗
if code != nil && code.SnId > 0 {
list, err := model.GetLottery(l.Platform, code.SnId, l.CId, l.StartTs)
@ -342,15 +351,6 @@ func (l *LotteryData) Done() {
defer func() {
l.isDone = false
}()
if code == nil && isMust {
code = &model.LotteryCode{
Platform: l.Platform,
SnId: awardPlayer.SnId,
CId: l.CId,
StartTs: l.StartTs,
Code: fmt.Sprintf("%d", l.TotalCode),
}
}
if code == nil {
return
}