优化压测机器人
This commit is contained in:
parent
424957278a
commit
087d81f86c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user