Compare commits
No commits in common. "ead0abf6b61f5cec2bd90062a7b05d852505d519" and "0eb4b826a5211a5ba0d6d5ef74c1447daea8ad1c" have entirely different histories.
ead0abf6b6
...
0eb4b826a5
|
@ -460,9 +460,6 @@ func (this *WelfareMgr) GetTurnplteVideo(p *Player) {
|
|||
// 可以领取
|
||||
p.WelfData.Sign7.VideoTicket = ts
|
||||
index := p.WelfData.Sign7.SignIndex % int32(len(turn.RateList))
|
||||
if index == 0 {
|
||||
index = 7
|
||||
}
|
||||
var drawdates []*webapi_proto.WelfareDate
|
||||
for _, v := range sign7.List {
|
||||
if v.Day == index { // 找到对应天数
|
||||
|
@ -644,13 +641,6 @@ func (this *WelfareMgr) WelfaredInfo(p *Player) {
|
|||
info := this.GetConfig(p.Platform)
|
||||
turnplate := info.WelfareTurnplateDateList
|
||||
sign7 := info.Welfare7SignDateList
|
||||
//第8天 清除数据
|
||||
|
||||
if p.WelfData.Sign7.SignIndex%int32(len(turnplate.RateList)) == 0 && (time.Now().Unix()-p.WelfData.Sign7.SignTickets)/86400 >= 1 {
|
||||
p.WelfData.Sign7.Addup2Data = make(map[int32]map[int32]int64)
|
||||
p.WelfData.Sign7.AddupIndex = []int32{}
|
||||
}
|
||||
|
||||
if turnplate != nil && sign7 != nil {
|
||||
pack.Switch = turnplate.Switch
|
||||
if turnplate.Switch != model.WelfareClose {
|
||||
|
|
Loading…
Reference in New Issue