上传代码

This commit is contained in:
liwei1dao 2024-01-26 09:33:12 +08:00
parent cc386efeba
commit 327c9727f0
2 changed files with 2 additions and 1 deletions

View File

@ -69,6 +69,8 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.ArenaInfoReq) (errd
Npc: make(map[int32]*pb.DBNpc), Npc: make(map[int32]*pb.DBNpc),
Lastweektime: configure.Now().Unix(), Lastweektime: configure.Now().Unix(),
Settlementtime: this.module.modelArena.settlementTime().Unix(), Settlementtime: this.module.modelArena.settlementTime().Unix(),
Tasks: make(map[int32]int32),
Danaward: make(map[int32]int32),
} }
if info.Dan, err = this.module.modelArena.computedan(info.Integral); err != nil { if info.Dan, err = this.module.modelArena.computedan(info.Integral); err != nil {
errdata = &pb.ErrorData{ errdata = &pb.ErrorData{

View File

@ -157,7 +157,6 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal
if bNewRecord { if bNewRecord {
go this.module.battlerecord.WrietBattleRecord(session.GetUserId(), req.Report, time.Now().Add(time.Hour*24*8)) go this.module.battlerecord.WrietBattleRecord(session.GetUserId(), req.Report, time.Now().Add(time.Hour*24*8))
this.module.modulerank.CheckRank(session.GetUserId(), req.BossId, req.Difficulty, line, req.Report.Costtime) this.module.modulerank.CheckRank(session.GetUserId(), req.BossId, req.Difficulty, line, req.Report.Costtime)
} }
// 连续自动战斗 // 连续自动战斗
if len(viking.Round) == 10 { if len(viking.Round) == 10 {