|
@@ -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);
|