Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
b84b75ce8f
@ -120,6 +120,17 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 发奖
|
||||||
|
if code = this.module.DispenseRes(session, curTaskConf.Reword, true); code != pb.ErrorCode_Success {
|
||||||
|
this.module.Error("资源发放",
|
||||||
|
log.Field{Key: "uid", Value: uid},
|
||||||
|
log.Field{Key: "groupId", Value: req.GroupId},
|
||||||
|
log.Field{Key: "taskId", Value: req.TaskId},
|
||||||
|
log.Field{Key: "reword", Value: curTaskConf.Reword},
|
||||||
|
log.Field{Key: "code", Value: code},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
for _, v := range curTaskConf.Reword {
|
for _, v := range curTaskConf.Reword {
|
||||||
if v.A == comm.HeroType {
|
if v.A == comm.HeroType {
|
||||||
hero = append(hero, v.T)
|
hero = append(hero, v.T)
|
||||||
@ -134,16 +145,7 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.WorldtaskFinishRe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
rsp.Newheros = newhero
|
rsp.Newheros = newhero
|
||||||
// 发奖
|
|
||||||
if code = this.module.DispenseRes(session, curTaskConf.Reword, true); code != pb.ErrorCode_Success {
|
|
||||||
this.module.Error("资源发放",
|
|
||||||
log.Field{Key: "uid", Value: uid},
|
|
||||||
log.Field{Key: "groupId", Value: req.GroupId},
|
|
||||||
log.Field{Key: "taskId", Value: req.TaskId},
|
|
||||||
log.Field{Key: "reword", Value: curTaskConf.Reword},
|
|
||||||
log.Field{Key: "code", Value: code},
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//判断任务是否已完成
|
//判断任务是否已完成
|
||||||
|
Loading…
Reference in New Issue
Block a user