| | |
| | | var startSite = LocationHelper.GetAgvSite(mst.S_START_LOC); |
| | | var endSite = LocationHelper.GetAgvSite(mst.S_END_LOC); // 如果找不到会返回0,就是假终点 |
| | | |
| | | var code = -1; |
| | | if (taskType == TaskName.产品入库) { |
| | | code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, order_name = $"{mst.S_CODE}" }), "p2pdst", "pgapi"); |
| | | } |
| | | else { |
| | | code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, dst = endSite }), "p2p", "pgapi"); |
| | | } |
| | | var code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, order_name = $"tet" }), "p2pdst2", "pgapi"); |
| | | |
| | | //var code = -1; |
| | | //if (taskType == TaskName.产品入库) { |
| | | // code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, order_name = $"{mst.S_CODE}" }), "p2pdst", "pgapi"); |
| | | //} |
| | | //else { |
| | | // code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, dst = endSite }), "p2p", "pgapi"); |
| | | //} |
| | | |
| | | // car_type 默认为1 |
| | | // src_ort 货架排号 |