上传主线和任务相关
This commit is contained in:
parent
22bf7e969c
commit
deee1f3f15
@ -122,6 +122,15 @@ func (this *apiComp) LevelPass(session comm.IUserSession, req *pb.MainlineLevelP
|
||||
UserExp: userExp,
|
||||
}) // 数据推送
|
||||
|
||||
if err = this.module.modelMline.updateMainlineData(session.GetUserId(), info); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype60, 1))
|
||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype61, 1, int32(req.Level)))
|
||||
go this.module.ModuleBuried.TriggerBuried(session.Clone(), tasks...)
|
||||
|
@ -94,6 +94,12 @@ func (this *apiComp) Accept(session comm.IUserSession, req *pb.WTaskAcceptReq) (
|
||||
session.SendMsg(string(this.module.GetType()), "boxchange", &pb.WTaskBoxChangePush{Boxs: wtask.Boxs})
|
||||
}
|
||||
|
||||
if len(conf.GetItem) > 0 { //接取 获得物品
|
||||
if errdata = this.module.DispenseRes(session, conf.GetItem, true); errdata != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if progress, errdata = this.module.pushtaskprogress(session, wtask, false); errdata != nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user