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{
|
if resp, errdata = robot.SendMessage("pagoda", "challenge", &pb.PagodaChallengeReq{
|
||||||
Cid: +1,
|
Cid: this.pagoda.PagodaId,
|
||||||
Battle: &pb.BattleFormation{
|
Battle: &pb.BattleFormation{
|
||||||
Format: heros,
|
Format: heros,
|
||||||
}}); errdata != nil {
|
}}); errdata != nil {
|
||||||
@ -94,7 +94,7 @@ func (this *ModuleRobot_Pagoda) DoPipeline(robot IRobot) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if _, errdata = robot.SendMessage("pagoda", "challengeover", &pb.PagodaChallengeOverReq{
|
if _, errdata = robot.SendMessage("pagoda", "challengeover", &pb.PagodaChallengeOverReq{
|
||||||
Cid: this.pagoda.PagodaId + 1,
|
Cid: this.pagoda.PagodaId,
|
||||||
Report: &pb.BattleReport{
|
Report: &pb.BattleReport{
|
||||||
Info: resp.(*pb.PagodaChallengeResp).Info,
|
Info: resp.(*pb.PagodaChallengeResp).Info,
|
||||||
WinSide: 1,
|
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))
|
err = errors.New(fmt.Sprintf("code:%d message:%s", errdata.Code, errdata.Message))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user