Browse Source

1.登录信息修改接口增加参数。

2025_1_7x505f
wangwanlei 2 weeks ago
parent
commit
c7b7e00a9e

+ 21
- 0
app/src/main/java/com/xhly/manageapp/bean/login/LoginStudentBean.kt View File

@@ -36,6 +36,22 @@ package com.xhly.manageapp.bean.login
36 36
  * 必须
37 37
  * 性别0保密1男2女
38 38
  * mock: 1
39
+ * sn	string
40
+ * 必须
41
+ * sn
42
+ * device	string
43
+ * 必须
44
+ * 设备名
45
+ * deviceModel	string
46
+ * 必须
47
+ * 设备型号
48
+ * clientVersion	string
49
+ * 必须
50
+ * 客户端版本
51
+ * romVersion	string
52
+ * 必须
53
+ * 平板ROM版本
54
+ *
39 55
  */
40 56
   //用于传递学生登录信息
41 57
 class LoginStudentBean {
@@ -48,4 +64,9 @@ class LoginStudentBean {
48 64
     var studentno: String? = null
49 65
     var cardid: String? = null
50 66
     var usersex: Int = 0
67
+    var sn: String? = null
68
+    var device: String? = null
69
+    var deviceModel: String? = null
70
+    var clientVersion: String? = null
71
+    var romVersion: String? = null
51 72
 }

+ 5
- 0
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

@@ -1776,6 +1776,11 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(), Downloa
1776 1776
                     } else {
1777 1777
                         loginStudentBean.usersex = 0
1778 1778
                     }
1779
+                    loginStudentBean.sn = ManageApplication.getDeviceInfo()
1780
+                    loginStudentBean.device=Build.BRAND
1781
+                    loginStudentBean.deviceModel=Build.MODEL
1782
+                    loginStudentBean.clientVersion=SystemUtil.getAppVersionName(this,packageName)
1783
+                    loginStudentBean.romVersion=Build.DISPLAY
1779 1784
                     updateUser = true
1780 1785
                     viewModel.editLogin(loginStudentBean)
1781 1786
                 } catch (e: Exception) {

Loading…
Cancel
Save