update
This commit is contained in:
parent
82f1f44917
commit
5ce7e72a8b
@ -48,6 +48,7 @@ func (this *ModuleRobot_Caravan) DoPipeline(robot IRobot) (err error) {
|
|||||||
resp proto.Message
|
resp proto.Message
|
||||||
errdata *pb.ErrorData
|
errdata *pb.ErrorData
|
||||||
)
|
)
|
||||||
|
this.curCity += 1
|
||||||
if resp, errdata = robot.SendMessage("caravan", "gotocity", &pb.CaravanGotoCityReq{
|
if resp, errdata = robot.SendMessage("caravan", "gotocity", &pb.CaravanGotoCityReq{
|
||||||
City: this.curCity,
|
City: this.curCity,
|
||||||
Ticket: 1,
|
Ticket: 1,
|
||||||
@ -67,6 +68,9 @@ func (this *ModuleRobot_Caravan) DoPipeline(robot IRobot) (err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//CaravanBuyOrSellReq
|
//CaravanBuyOrSellReq
|
||||||
|
if _, ok := data.City[this.curCity]; !ok {
|
||||||
|
return
|
||||||
|
}
|
||||||
var item string
|
var item string
|
||||||
for _, v := range data.City[this.curCity].Special {
|
for _, v := range data.City[this.curCity].Special {
|
||||||
item = v
|
item = v
|
||||||
|
Loading…
Reference in New Issue
Block a user