diff --git a/modules/robot/modulerobot_mainline.go b/modules/robot/modulerobot_mainline.go index f9f1e7e09..2c26df217 100644 --- a/modules/robot/modulerobot_mainline.go +++ b/modules/robot/modulerobot_mainline.go @@ -45,8 +45,13 @@ func (this *ModuleRobot_MainLine) Receive(robot IRobot, stype string, message pr this.info.Level = make(map[int32]int32) } break - case "create": - // resp := message.(*pb.UserCreateResp) + case "challengeover": + resp := message.(*pb.MainlineChallengeOverResp) + this.info.Level[resp.Level] = resp.Star + break + case "levelpass": + resp := message.(*pb.MainlineLevelPassResp) + this.info.Level[resp.Level] = resp.Star break } return diff --git a/modules/robot/modulerobot_wtask.go b/modules/robot/modulerobot_wtask.go index a20441d48..c7c46f032 100644 --- a/modules/robot/modulerobot_wtask.go +++ b/modules/robot/modulerobot_wtask.go @@ -79,6 +79,7 @@ func (this *ModuleRobot_WTask) Receive(robot IRobot, stype string, message proto break case "acceptchange": resp := message.(*pb.WTaskAcceptChangePush) + // log.Debug("[机器人 WTask-AcceptChange]", log.Field{Key: "Account", Value: robot.Account()}, log.Field{Key: "Resp", Value: resp.String()}) this.progress = resp.Accepts if this.info != nil { this.info.Accepts = make([]int32, 0) @@ -138,7 +139,7 @@ locp: switch comm.TaskType(cconf.Type) { case comm.Rtype1, comm.Rtype14: module = comm.ModuleHero - case comm.Rtype20001, comm.Rtype70, comm.Rtype227: + case comm.Rtype20001, comm.Rtype70, comm.Rtype205, comm.Rtype227: module = comm.ModuleWtask case comm.Rtype149, comm.Rtype152: module = comm.ModulePractice