| | |
| | | var mileage = intent.getDoubleExtra("mileage", 0.0) //里程,单位为km |
| | | callOver(contexts!!, price) |
| | | } |
| | | |
| | | "android.net.conn.CONNECTIVITY_SUCCESS", "android.net.conn.CONNECTIVITY_FAILURE", "android.net.conn.CONNECTIVITY_CHANGE" -> { |
| | | // toast("收到网络变化") |
| | | // if (NetUtils.isNetworkConnected(MyApplication.getInstance())) { |
| | | // callErrorOrder(contexts!!) |
| | | // } |
| | | } |
| | | } |
| | | } |
| | | } catch (e: Exception) { |
| | |
| | | } else { |
| | | val bean = CacheKey.getLocalOrderBean() |
| | | bean?.let { |
| | | if (bean.money >= 0.0) { |
| | | if (bean.money > 0.0) { |
| | | return@callOver |
| | | } |
| | | bean.endTime = System.currentTimeMillis() |
| | |
| | | if (bean.money <= 0.0) { |
| | | return@let |
| | | } |
| | | CacheKey.saveLocalOrderBeanNull() |
| | | val map = getMapByAny() |
| | | map["orderId"] = bean.orderId |
| | | map["orderType"] = bean.orderType |
| | |
| | | map["travelFee"] = bean.money |
| | | callNet(contexts, "api/order/confirmFees$", map) { |
| | | toast("上传异常订单成功") |
| | | CacheKey.saveLocalOrderBeanNull() |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.ERROR_INFO)) |
| | | } |
| | | } |