| | |
| | | CacheKey.saveLocalOrderBeanNull() |
| | | toast("调用异常结束,在异常订单中 id==="+bean.orderId) |
| | | callNet(contexts, "api/order/confirmFees$", map,{ |
| | | MyApplication.currentOrderId = "" |
| | | toast("上传异常订单成功") |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.ERROR_INFO)) |
| | | }) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | private fun callStartOrder(contexts: Context, i: Int) { |
| | | fun callStartOrder(contexts: Context, i: Int) { |
| | | var map = getMapByAny() |
| | | map["orderId"] = MyApplication.currentOrderId |
| | | map["orderType"] = MyApplication.currentOrderType |
| | |
| | | mapOrder["orderType"] = MyApplication.currentOrderType |
| | | callNet(contexts, Api.queryOrderInfo, mapOrder) { |
| | | var orderBean = Gson().fromJson(it, OrderBean::class.java) |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.UPDATA_MAIN_CAR)) |
| | | if (orderBean.data.orderState == 7){ |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.SURE_MONEY)) |
| | | } |
| | | MyApplication.currentOrderId = "" |
| | | if (orderBean.data.orderState == 2 ||orderBean.data.orderState == 3 || orderBean.data.orderState == 4 ){ |
| | | Handler(Looper.getMainLooper()).postDelayed({ |
| | | toast("发送网约") |