From 664834b83a4c50cac039bbfa49f5164ca9bf8e3c Mon Sep 17 00:00:00 2001
From: liugl <liugl@sinata.cn>
Date: 星期五, 07 八月 2020 17:05:17 +0800
Subject: [PATCH] 8.7

---
 app/src/main/java/com/okgoincar/slab/SlabLoginActivity.kt |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/src/main/java/com/okgoincar/slab/SlabLoginActivity.kt b/app/src/main/java/com/okgoincar/slab/SlabLoginActivity.kt
index fb1442d..b176cf3 100644
--- a/app/src/main/java/com/okgoincar/slab/SlabLoginActivity.kt
+++ b/app/src/main/java/com/okgoincar/slab/SlabLoginActivity.kt
@@ -38,6 +38,7 @@
             callNet(true, Api.loginByJobNumber, map) {
                 toast("登录成功")
                 var bean = gson.fromJson<LoginBean>(it, LoginBean::class.java)
+                CacheKey.putKeyStr("jobNum",et_number.getContent().trim())
                 CacheKey.putKeyStr("appid", bean.data.appid)
                 CacheKey.putKeyStr("token", bean.data.token)
                 CacheKey.putKeyStr("userId", bean.data.id.toString())
@@ -73,7 +74,7 @@
                 .show()
             mBackAppTime = System.currentTimeMillis()
         } else {
-            closeAll()
+            moveTaskToBack(true)
         }
     }
 

--
Gitblit v1.7.1