|
@@ -3,7 +3,6 @@ package com.xhly.manageapp.ui.login.activity
|
3
|
3
|
import BaseActivity
|
4
|
4
|
import android.Manifest
|
5
|
5
|
import android.annotation.SuppressLint
|
6
|
|
-import android.content.pm.PackageManager
|
7
|
6
|
import android.graphics.Color
|
8
|
7
|
import android.os.Build
|
9
|
8
|
import android.view.View
|
|
@@ -17,7 +16,6 @@ import com.kongzue.dialogx.dialogs.CustomDialog
|
17
|
16
|
import com.kongzue.dialogx.interfaces.OnBindView
|
18
|
17
|
import com.tbruyelle.rxpermissions2.RxPermissions
|
19
|
18
|
import com.xhly.corelib.Const
|
20
|
|
-import com.xhly.corelib.bean.AppInfo
|
21
|
19
|
import com.xhly.corelib.eventbus.UIEvent
|
22
|
20
|
import com.xhly.corelib.utils.AppUtils
|
23
|
21
|
import com.xhly.corelib.utils.GsonUtils
|
|
@@ -26,15 +24,13 @@ import com.xhly.corelib.utils.SystemUtil
|
26
|
24
|
import com.xhly.manageapp.ManageApplication
|
27
|
25
|
import com.xhly.manageapp.R
|
28
|
26
|
import com.xhly.manageapp.bean.EventLog
|
29
|
|
-import com.xhly.manageapp.bean.LoginBean
|
|
27
|
+import com.xhly.manageapp.bean.login.LoginBean
|
30
|
28
|
import com.xhly.manageapp.bean.SocketMsgBean
|
31
|
29
|
import com.xhly.manageapp.bean.log.LogPushBean
|
32
|
30
|
import com.xhly.manageapp.bean.log.LogdOperateBean
|
33
|
|
-import com.xhly.manageapp.bean.strategy.StrategyBean
|
34
|
31
|
import com.xhly.manageapp.bean.user.UserBean
|
35
|
32
|
import com.xhly.manageapp.contentprovider.ZSpProvider
|
36
|
33
|
import com.xhly.manageapp.databinding.ActivityLoginBinding
|
37
|
|
-import com.xhly.manageapp.service.websocket.AppSocket
|
38
|
34
|
import com.xhly.manageapp.ui.login.viewmodel.LoginViewModel
|
39
|
35
|
import com.xhly.manageapp.ui.main.activity.MainActivity
|
40
|
36
|
import com.xhly.manageapp.utils.CurrentAppSharedPreferencesUtils
|
|
@@ -132,7 +128,7 @@ class LoginActivity : BaseActivity<LoginViewModel, ActivityLoginBinding>() {
|
132
|
128
|
Toast(getString(R.string.codenoempty))
|
133
|
129
|
return
|
134
|
130
|
}
|
135
|
|
- val loginBean=LoginBean()
|
|
131
|
+ val loginBean= LoginBean()
|
136
|
132
|
loginBean.loginname=account
|
137
|
133
|
loginBean.loginpwd=code
|
138
|
134
|
loginBean.device= Build.BRAND
|