更新世界任务战斗奖励
This commit is contained in:
parent
a839bbcd3c
commit
1945c4db95
@ -106,6 +106,16 @@ func (this *apiComp) Battlefinish(session comm.IUserSession, req *pb.WorldtaskBa
|
||||
log.Field{Key: "taskId", Value: req.TaskId},
|
||||
log.Field{Key: "战斗结果", Value: isWin},
|
||||
)
|
||||
|
||||
// 发奖
|
||||
if code = this.module.DispenseRes(session, taskConf.Reword, true); code != pb.ErrorCode_Success {
|
||||
this.module.Error("资源发放",
|
||||
log.Field{Key: "uid", Value: uid},
|
||||
log.Field{Key: "taskId", Value: req.TaskId},
|
||||
log.Field{Key: "reword", Value: taskConf.Reword},
|
||||
log.Field{Key: "code", Value: code},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if err := session.SendMsg(string(this.module.GetType()), WorldtaskBattleFinish, rsp); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user