Browse Source

网页端登录时不绑定mac

tags/正式3.3.0
王宁 2 years ago
parent
commit
bc426f0f25

+ 8
- 4
suser/src/main/java/com/xhkjedu/suser/service/system/UserService.java View File

@@ -160,10 +160,14 @@ public class UserService extends JedisUtil {
160 160
                     return new ResultVo(1, "此账号未分配班级");
161 161
                 }
162 162
 
163
-                //更新学生硬件绑定信息
164
-                userVo.setMac(mac);
165
-                userVo.setBindmac(sbindmac);
166
-                userMapper.updateBindMac(userVo);
163
+                String device = user.getDevice();//只有学生
164
+                if (device != null && "pad".equals(device)) {
165
+                    //更新学生硬件绑定信息
166
+                    userVo.setMac(mac);
167
+                    userVo.setBindmac(sbindmac);
168
+                    userMapper.updateBindMac(userVo);
169
+                }
170
+
167 171
                 return new ResultVo(0, "登录成功", userVo);
168 172
             } else{
169 173
                 return new ResultVo(0, "登录成功", userVo);

Loading…
Cancel
Save