爬塔奖励
This commit is contained in:
parent
2e8241ced0
commit
29e40b3e80
@ -84,11 +84,6 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
|
|||||||
mapData["pagodaId"] = conf.LayerNum
|
mapData["pagodaId"] = conf.LayerNum
|
||||||
mapData["type"] = pagoda.Type
|
mapData["type"] = pagoda.Type
|
||||||
|
|
||||||
// 通关奖励
|
|
||||||
code = this.module.DispenseRes(session, conf.Reward, true)
|
|
||||||
if code != pb.ErrorCode_Success {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
pagoda.PagodaId = conf.LayerNum // 更新层数
|
pagoda.PagodaId = conf.LayerNum // 更新层数
|
||||||
code = this.module.ModifyPagodaData(session.GetUserId(), mapData)
|
code = this.module.ModifyPagodaData(session.GetUserId(), mapData)
|
||||||
session.SendMsg(string(this.module.GetType()), PagodaChallengeOverResp, &pb.PagodaChallengeOverResp{Data: pagoda})
|
session.SendMsg(string(this.module.GetType()), PagodaChallengeOverResp, &pb.PagodaChallengeOverResp{Data: pagoda})
|
||||||
@ -168,7 +163,11 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
|
|||||||
|
|
||||||
session.SendMsg(string(this.module.GetType()), PagodaChallengeOverResp, &pb.PagodaChallengeOverResp{Data: pagoda})
|
session.SendMsg(string(this.module.GetType()), PagodaChallengeOverResp, &pb.PagodaChallengeOverResp{Data: pagoda})
|
||||||
}
|
}
|
||||||
|
// 通关奖励
|
||||||
|
code = this.module.DispenseRes(session, conf.Reward, true)
|
||||||
|
if code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
// 任务相关
|
// 任务相关
|
||||||
if req.PagodaType == comm.PagodaType {
|
if req.PagodaType == comm.PagodaType {
|
||||||
this.module.ModuleRtask.SendToRtask(session, comm.Rtype58, 1)
|
this.module.ModuleRtask.SendToRtask(session, comm.Rtype58, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user