| | |
| | | } |
| | | } |
| | | |
| | | 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)) |
| | | } |