From 777737e598c9b56034c42a3d26a3ed46a5b10b26 Mon Sep 17 00:00:00 2001 From: liugl <liugl@sinata.cn> Date: 星期二, 22 十二月 2020 10:04:42 +0800 Subject: [PATCH] 1:新增上线 6版 --- app/src/main/java/com/okgoincar/base/MoneyBroadCastReceiver.kt | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/app/src/main/java/com/okgoincar/base/MoneyBroadCastReceiver.kt b/app/src/main/java/com/okgoincar/base/MoneyBroadCastReceiver.kt index 0e8f391..b2fab44 100644 --- a/app/src/main/java/com/okgoincar/base/MoneyBroadCastReceiver.kt +++ b/app/src/main/java/com/okgoincar/base/MoneyBroadCastReceiver.kt @@ -159,6 +159,7 @@ CacheKey.saveLocalOrderBeanNull() toast("调用异常结束,在异常订单中 id==="+bean.orderId) callNet(contexts, "api/order/confirmFees$", map,{ + MyApplication.currentOrderId = "" toast("上传异常订单成功") EventBus.getDefault().post(BaseEvent(BaseEvent.ERROR_INFO)) }) { @@ -167,7 +168,6 @@ } } } - } } @@ -203,9 +203,11 @@ 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("发送网约") -- Gitblit v1.7.1