Compare commits

...

2 Commits

Author SHA1 Message Date
c389cf463e Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev 2023-06-01 15:32:49 +08:00
e17387c10f update 2023-06-01 15:32:43 +08:00
4 changed files with 12 additions and 19 deletions

View File

@ -396,8 +396,6 @@ type (
}
// 世界任务
IWorldtask interface {
// 任务条件达成通知
TaskCondFinishNotify(session IUserSession, condIds []int32) error
// bingo任务
BingoJumpTask(session IUserSession, groupId, rtaskId int32) error
// 通过任务ID bingo

View File

@ -385,14 +385,14 @@ func (this *ModuleRtask) processTasks(session comm.IUserSession, taskParams ...*
return
}
//通知世界任务模块
module, err := this.service.GetModule(comm.ModuleWorldtask)
if err == nil {
//世界任务
if worldtask, ok := module.(comm.IWorldtask); ok {
if err := worldtask.TaskCondFinishNotify(session, condIdsForNotify); err != nil {
}
}
}
// module, err := this.service.GetModule(comm.ModuleWorldtask)
// if err == nil {
// //世界任务
// if worldtask, ok := module.(comm.IWorldtask); ok {
// if err := worldtask.TaskCondFinishNotify(session, condIdsForNotify); err != nil {
// }
// }
// }
// 通知公会任务模块
// sociatyModule, err := this.service.GetModule(comm.ModuleSociaty)
// if err != nil {

View File

@ -241,10 +241,10 @@ type TaskParams struct {
}
// 任务条件达成通知
func (this *Sociaty) TCondFinishNotify(uid string, condIds []int32) {
func (this *Sociaty) TCondFinishNotify(uid string, conds []*pb.ConIProgress) {
log.Debug("公会任务通知",
log.Field{Key: "uid", Value: uid},
log.Field{Key: "condIds", Value: condIds})
log.Field{Key: "condIds", Value: conds})
sociaty := this.modelSociaty.getUserSociaty(uid)
if sociaty == nil {
@ -260,8 +260,8 @@ func (this *Sociaty) TCondFinishNotify(uid string, condIds []int32) {
var flag bool
for _, v := range dt.TaskList {
for _, condId := range condIds {
if v.TaskId == condId {
for _, cond := range conds {
if v.TaskId == cond.Conid && cond.State == pb.BuriedItemFinishState_finish {
v.Status = 1
flag = true
}

View File

@ -155,11 +155,6 @@ func (this *Worldtask) TCondFinishNotify(uid string, conds []*pb.ConIProgress) {
return
}
// 任务条件达成通知
func (this *Worldtask) TaskCondFinishNotify(session comm.IUserSession, condIds []int32) error {
return nil
}
// 获取我的世界任务
func (this *Worldtask) GetMyWorldtask(uid string) *pb.DBWorldtask {
wt, err := this.modelWorldtask.getWorldtask(uid)