Browse Source

mac地址转大写

tags/正式3.11.0
王宁 1 year ago
parent
commit
1f8603c341

+ 7
- 1
suser/src/main/java/com/xhkjedu/suser/service/system/UserService.java View File

227
         ResultVo resultVo = null;
227
         ResultVo resultVo = null;
228
         String loginpwd = user.getLoginpwd();
228
         String loginpwd = user.getLoginpwd();
229
         setLoginPwd(user);
229
         setLoginPwd(user);
230
-        String mac = user.getMac();
230
+        String mac = user.getMac().toUpperCase();
231
+        user.setMac(mac);
231
         UserVo userVo = userMapper.getUserByLoginnameMac(user.getLoginname(), mac);
232
         UserVo userVo = userMapper.getUserByLoginnameMac(user.getLoginname(), mac);
232
 
233
 
233
         if (userVo != null && userVo.getUserid() > 0) {
234
         if (userVo != null && userVo.getUserid() > 0) {
235
             user.setUsername(userVo.getUsername());
236
             user.setUsername(userVo.getUsername());
236
             user.setSchoolid(userVo.getSchoolid());
237
             user.setSchoolid(userVo.getSchoolid());
237
             user.setUsertype(userVo.getUsertype());
238
             user.setUsertype(userVo.getUsertype());
239
+            if(N_Utils.isNotEmpty(userVo.getMac())){
240
+                String userVoMac = userVo.getMac().toUpperCase();
241
+                userVo.setMac(userVoMac);
242
+            }
243
+
238
             //验证学生登录系列问题
244
             //验证学生登录系列问题
239
             resultVo = checkLoginStudent(user, userVo);
245
             resultVo = checkLoginStudent(user, userVo);
240
         } else {
246
         } else {

Loading…
Cancel
Save