挑战结束更新塔信息
This commit is contained in:
parent
d2628f0349
commit
7f480a670f
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user