上传任务代码
This commit is contained in:
parent
bdaad954b8
commit
1f371a9b44
@ -278,15 +278,15 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, rtaskType com
|
|||||||
}
|
}
|
||||||
|
|
||||||
//任务完成则推送
|
//任务完成则推送
|
||||||
if code := this.CheckCondi(uid, conf.Id); code == pb.ErrorCode_Success {
|
if code = this.CheckCondi(uid, conf.Id); code == pb.ErrorCode_Success {
|
||||||
module, err := this.service.GetModule(comm.ModuleWorldtask)
|
module, err := this.service.GetModule(comm.ModuleWorldtask)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
go func() {
|
// go func() {
|
||||||
defer func() {
|
// defer func() {
|
||||||
if r := recover(); r != nil {
|
// if r := recover(); r != nil {
|
||||||
log.Errorf("[worldtask ] err:%v ", r)
|
// log.Errorf("[worldtask ] err:%v ", r)
|
||||||
}
|
// }
|
||||||
}()
|
// }()
|
||||||
|
|
||||||
if worldtask, ok := module.(comm.IWorldtask); ok {
|
if worldtask, ok := module.(comm.IWorldtask); ok {
|
||||||
if err := worldtask.TaskcondNotify(session, conf.Id); err != nil {
|
if err := worldtask.TaskcondNotify(session, conf.Id); err != nil {
|
||||||
@ -297,16 +297,16 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, rtaskType com
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
// }()
|
||||||
}
|
}
|
||||||
userModule, err := this.service.GetModule(comm.ModuleUser)
|
userModule, err := this.service.GetModule(comm.ModuleUser)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
go func() {
|
// go func() {
|
||||||
defer func() { //程序异常 收集异常信息传递给前端显示
|
// defer func() { //程序异常 收集异常信息传递给前端显示
|
||||||
if r := recover(); r != nil {
|
// if r := recover(); r != nil {
|
||||||
log.Errorf("[sociatytask ] err:%v ", r)
|
// log.Errorf("[sociatytask ] err:%v ", r)
|
||||||
}
|
// }
|
||||||
}()
|
// }()
|
||||||
// 公会
|
// 公会
|
||||||
if user, ok := userModule.(comm.IUser); ok {
|
if user, ok := userModule.(comm.IUser); ok {
|
||||||
ex, err := user.GetUserExpand(uid)
|
ex, err := user.GetUserExpand(uid)
|
||||||
@ -333,7 +333,7 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, rtaskType com
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
// }()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user