From 7f480a670f5db28189e69f2e037dd24eba7253f0 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 24 Aug 2023 17:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=91=E6=88=98=E7=BB=93=E6=9D=9F=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=A1=94=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/robot/modulerobot_pagoda.go | 7 +++++++ 1 file changed, 7 insertions(+) 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 }