上传压测机器人

This commit is contained in:
liwei1dao 2023-08-25 17:52:32 +08:00
parent 100b79516b
commit 4a4915577b
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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()
}