上传任务修复

This commit is contained in:
liwei1dao 2023-05-25 20:22:36 +08:00
parent 14e37295fb
commit 1bb1752209

View File

@ -328,30 +328,30 @@ func (this *ModuleRtask) processOneTask(session comm.IUserSession, rtaskType com
}
}
}
userModule, err := this.service.GetModule(comm.ModuleUser)
if err == nil {
// 公会
if user, ok := userModule.(comm.IUser); ok {
ex, err := user.GetUserExpand(uid)
if err == nil && ex.SociatyId != "" {
sociatyModule, err := this.service.GetModule(comm.ModuleSociaty)
if err != nil {
return
}
if sociaty, ok := sociatyModule.(comm.ISociaty); ok {
if err2 := sociaty.TaskcondNotify(uid, ex.SociatyId, condId); err2 != nil {
log.Error("公会任务条件达成通知",
log.Field{Key: "uid", Value: uid},
log.Field{Key: "sociatyId", Value: ex.SociatyId},
log.Field{Key: "condId", Value: condId},
log.Field{Key: "err", Value: err2.Error()},
)
}
this.processOneTask(session, comm.Rtype156, 1)
}
}
}
}
// userModule, err := this.service.GetModule(comm.ModuleUser)
// if err == nil {
// // 公会
// if user, ok := userModule.(comm.IUser); ok {
// ex, err := user.GetUserExpand(uid)
// if err == nil && ex.SociatyId != "" {
// sociatyModule, err := this.service.GetModule(comm.ModuleSociaty)
// if err != nil {
// return
// }
// if sociaty, ok := sociatyModule.(comm.ISociaty); ok {
// if err2 := sociaty.TaskcondNotify(uid, ex.SociatyId, condId); err2 != nil {
// log.Error("公会任务条件达成通知",
// log.Field{Key: "uid", Value: uid},
// log.Field{Key: "sociatyId", Value: ex.SociatyId},
// log.Field{Key: "condId", Value: condId},
// log.Field{Key: "err", Value: err2.Error()},
// )
// }
// this.processOneTask(session, comm.Rtype156, 1)
// }
// }
// }
// }
}
}
return