优化压测机器人
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)
|
this.info.Level = make(map[int32]int32)
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case "create":
|
case "challengeover":
|
||||||
// resp := message.(*pb.UserCreateResp)
|
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
|
break
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
@ -79,6 +79,7 @@ func (this *ModuleRobot_WTask) Receive(robot IRobot, stype string, message proto
|
|||||||
break
|
break
|
||||||
case "acceptchange":
|
case "acceptchange":
|
||||||
resp := message.(*pb.WTaskAcceptChangePush)
|
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
|
this.progress = resp.Accepts
|
||||||
if this.info != nil {
|
if this.info != nil {
|
||||||
this.info.Accepts = make([]int32, 0)
|
this.info.Accepts = make([]int32, 0)
|
||||||
@ -138,7 +139,7 @@ locp:
|
|||||||
switch comm.TaskType(cconf.Type) {
|
switch comm.TaskType(cconf.Type) {
|
||||||
case comm.Rtype1, comm.Rtype14:
|
case comm.Rtype1, comm.Rtype14:
|
||||||
module = comm.ModuleHero
|
module = comm.ModuleHero
|
||||||
case comm.Rtype20001, comm.Rtype70, comm.Rtype227:
|
case comm.Rtype20001, comm.Rtype70, comm.Rtype205, comm.Rtype227:
|
||||||
module = comm.ModuleWtask
|
module = comm.ModuleWtask
|
||||||
case comm.Rtype149, comm.Rtype152:
|
case comm.Rtype149, comm.Rtype152:
|
||||||
module = comm.ModulePractice
|
module = comm.ModulePractice
|
||||||
|
Loading…
Reference in New Issue
Block a user