8.7
liugl
2020-08-07 4cb70f4d45d586a5048750b77675d82f142deacc
app/src/main/java/com/okgoincar/base/MoneyBroadCastReceiver.kt
@@ -41,10 +41,10 @@
                    }
                    "android.net.conn.CONNECTIVITY_SUCCESS", "android.net.conn.CONNECTIVITY_FAILURE", "android.net.conn.CONNECTIVITY_CHANGE" -> {
                        toast("收到网络变化")
                        if (NetUtils.isNetworkConnected(MyApplication.getInstance())) {
                            callErrorOrder(contexts!!)
                        }
//                        toast("收到网络变化")
//                        if (NetUtils.isNetworkConnected(MyApplication.getInstance())) {
//                            callErrorOrder(contexts!!)
//                        }
                    }
                }
            }
@@ -120,7 +120,7 @@
        /***
         * 上传异常订单
         */
        private fun callErrorOrder(contexts: Context) {
        fun callErrorOrder(contexts: Context) {
            var bean = CacheKey.getLocalOrderBean()
            bean?.let {
                if (bean.money <= 0.0) {
@@ -133,10 +133,10 @@
                map["travelFee"] = bean.money
                callNet(contexts, "api/order/confirmFees$", map) {
                    toast("上传异常订单成功")
                    CacheKey.saveLocalOrderBeanNull()
                    EventBus.getDefault().post(BaseEvent(BaseEvent.ERROR_INFO))
                }
            }
        }
        private fun callStartOrder(contexts: Context, i: Int) {