diff --git a/modules/robot/modulerobot_pagoda.go b/modules/robot/modulerobot_pagoda.go index 6dd9b89ce..bc1b05446 100644 --- a/modules/robot/modulerobot_pagoda.go +++ b/modules/robot/modulerobot_pagoda.go @@ -14,9 +14,11 @@ import ( //爬塔模块 机器人 type ModuleRobot_Pagoda struct { pagoda *pb.DBPagoda + c *configureComp } func (this *ModuleRobot_Pagoda) Init() (err error) { + this.c = new(configureComp) return } @@ -27,7 +29,12 @@ func (this *ModuleRobot_Pagoda) Receive(robot IRobot, stype string, message prot resp := message.(*pb.PagodaGetListResp) this.pagoda = resp.Data break + case "challengeover": // 更新塔信息 + resp := message.(*pb.PagodaChallengeOverResp) + this.pagoda = resp.Data + break } + return }