liugl
2020-08-19 a0427086c4cb6dc63ee25963b8d1f13a1def3948
app/src/main/java/com/okgoincar/base/MainBroadCastReceiver.kt
@@ -30,7 +30,6 @@
        try {
            Handler(Looper.getMainLooper()).post {
                val b = intent.getBooleanExtra("isLogin",true)
                toast("isLogin=$b")
                if (!b){
                    CacheUtil.get().clear()
                    EventBus.getDefault().post(BaseEvent(BaseEvent.OUT_APP))
@@ -66,6 +65,7 @@
        callNet(context!!,Api.loginByIdentification,map){
            toast("登录成功")
            var bean = Gson().fromJson<LoginBean>(it, LoginBean::class.java)
            CacheKey.putKeyStr("identification",driverCertificate!!)
            CacheKey.putKeyStr("appid", bean.data.appid)
            CacheKey.putKeyStr("token", bean.data.token)
            CacheKey.putKeyStr("userId", bean.data.id.toString())