This commit is contained in:
meixiongfeng 2023-09-14 14:27:17 +08:00
parent 63c615ef43
commit 65524b7008

View File

@ -86,7 +86,7 @@ func (this *ModuleRobot_Pagoda) DoPipeline(robot IRobot) (err error) {
}
if resp, errdata = robot.SendMessage("pagoda", "challenge", &pb.PagodaChallengeReq{
Cid: +1,
Cid: this.pagoda.PagodaId,
Battle: &pb.BattleFormation{
Format: heros,
}}); errdata != nil {
@ -94,7 +94,7 @@ func (this *ModuleRobot_Pagoda) DoPipeline(robot IRobot) (err error) {
return
}
if _, errdata = robot.SendMessage("pagoda", "challengeover", &pb.PagodaChallengeOverReq{
Cid: this.pagoda.PagodaId + 1,
Cid: this.pagoda.PagodaId,
Report: &pb.BattleReport{
Info: resp.(*pb.PagodaChallengeResp).Info,
WinSide: 1,
@ -102,6 +102,7 @@ func (this *ModuleRobot_Pagoda) DoPipeline(robot IRobot) (err error) {
err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message))
return
}
return
}