update
This commit is contained in:
parent
63c615ef43
commit
65524b7008
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user