diff --git a/modules/friend/api_cross_agree.go b/modules/friend/api_cross_agree.go index 46ffb2f10..321bd8390 100644 --- a/modules/friend/api_cross_agree.go +++ b/modules/friend/api_cross_agree.go @@ -135,7 +135,7 @@ func (this *apiComp) Agree(session comm.IUserSession, req *pb.FriendAgreeReq) (c // 拥有xx个好友 // this.moduleFriend.ModuleRtask.SendToRtask(session, comm.Rtype10, int32(len(agreeIds))) - go this.moduleFriend.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype10, int32(len(agreeIds)))) + this.moduleFriend.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype10, int32(len(agreeIds)))) resp := &pb.FriendAgreeResp{ Num: optNum, } diff --git a/modules/friend/api_cross_assisthero.go b/modules/friend/api_cross_assisthero.go index 164d1188d..904896a73 100644 --- a/modules/friend/api_cross_assisthero.go +++ b/modules/friend/api_cross_assisthero.go @@ -98,6 +98,6 @@ func (this *apiComp) Assisthero(session comm.IUserSession, req *pb.FriendAssisth // 随机任务Rtype13 // this.moduleFriend.ModuleRtask.SendToRtask(session, comm.Rtype13, 1) - go this.moduleFriend.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype13, 1)) + this.moduleFriend.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype13, 1)) return } diff --git a/modules/friend/api_cross_zan.go b/modules/friend/api_cross_zan.go index 13aa770d6..c8476f319 100644 --- a/modules/friend/api_cross_zan.go +++ b/modules/friend/api_cross_zan.go @@ -100,6 +100,6 @@ func (this *apiComp) Zan(session comm.IUserSession, req *pb.FriendZanReq) (code // 赠送X次友情点 // this.moduleFriend.ModuleRtask.SendToRtask(session, comm.Rtype11, 1) - go this.moduleFriend.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype11, 1)) + this.moduleFriend.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype11, 1)) return } diff --git a/modules/hero/model_hero.go b/modules/hero/model_hero.go index 1f15f0cde..8806093f4 100644 --- a/modules/hero/model_hero.go +++ b/modules/hero/model_hero.go @@ -596,7 +596,7 @@ func (this *ModelHero) AddCardExp(session comm.IUserSession, hero *pb.DBHero, ex } } szTask = append(szTask, comm.GettaskParam(comm.Rtype33, 1, 1, hero.Lv)) - go this.moduleHero.ModuleRtask.TriggerTask(session.GetUserId(), szTask...) + this.moduleHero.ModuleRtask.TriggerTask(session.GetUserId(), szTask...) //this.moduleHero.ModuleRtask.SendToRtask(session, comm.Rtype33, 1, 1, hero.Lv) } }