lmw
2025-01-10 601f14db94013373df700e007095f7f2f5ecbe24
app/src/main/java/com/sinata/xqmuse/network/Functions.kt
@@ -26,7 +26,7 @@
        override fun isShowToast() = showToast
        override fun onError(code: Int, msg: String) {
            if (code == 700||code == 401){//token无效
            if (code == 700||code == 401||code == 501){//token无效
                error(code,"登录已失效")
                SPUtils.instance().remove(Const.User.TOKEN).remove(Const.User.USER_ID).apply()
//                (activity.application as JkApplication).exit()
@@ -52,7 +52,7 @@
        override fun isShowToast() = showToast
        override fun onError(code: Int, msg: String) {
            if (code == 401){//token无效
            if (code == 401||code == 501){//token无效
                error(code,"登录已失效")
                SPUtils.instance().remove(Const.User.TOKEN).remove(Const.User.USER_ID).apply()
//                (fragment.activity!!.application as JkApplication).exit()