上传压测机器人
This commit is contained in:
parent
100b79516b
commit
4a4915577b
@ -136,6 +136,8 @@ locp:
|
||||
module = comm.ModuleArena
|
||||
case comm.Rtype168:
|
||||
module = comm.ModulePagoda
|
||||
case comm.Rtype73:
|
||||
module = comm.ModuleViking
|
||||
default:
|
||||
log.Error("[Robot DoTask]", log.Field{Key: "ctype", Value: cconf.Type}, log.Field{Key: "conld", Value: cconf.Id}, log.Field{Key: "err", Value: "Not Achieved !"})
|
||||
break locp
|
||||
|
@ -53,6 +53,8 @@ func (this *Robot) Init(addr string, client IClient) (err error) {
|
||||
this.modules[comm.ModuleMainline] = new(ModuleRobot_MainLine)
|
||||
this.modules[comm.ModuleArena] = new(ModuleRobot_Arena)
|
||||
this.modules[comm.ModulePagoda] = new(ModuleRobot_Pagoda)
|
||||
this.modules[comm.ModuleViking] = new(ModuleRobot_Viking)
|
||||
|
||||
for _, v := range this.modules {
|
||||
v.Init()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user