| | |
| | | if (mst.N_B_STATE == 0) { |
| | | // 原代码版本 |
| | | //var code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = mst.S_START_LOC, dst = mst.S_END_LOC }), "p2p"); |
| | | // 尊重文档的版本(暂不考虑修改,因为没有终点站点,不合理) |
| | | //var startSite = LocationHelper.GetAgvSite(mst.S_START_LOC); |
| | | //var endSite = LocationHelper.GetAgvSite(mst.S_END_LOC); |
| | | // 尊重文档的版本 |
| | | var startSite = LocationHelper.GetAgvSite(mst.S_START_LOC); |
| | | var endSite = LocationHelper.GetAgvSite(mst.S_END_LOC); // 如果找不到会返回0,就是假终点 |
| | | |
| | | var code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = mst.S_START_LOC, dst = mst.S_END_LOC }), "p2pdst", "pgapi"); |
| | | var code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, dst = endSite }), "p2pdst", "pgapi"); |
| | | |
| | | if (code > 0) { |
| | | //更新任务状态 |