lyhzzz 4 weeks ago
parent
commit
7bf5f05fc5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/main/java/com/fdkankan/ucenter/service/impl/AppService.java

+ 5 - 1
src/main/java/com/fdkankan/ucenter/service/impl/AppService.java

@@ -90,7 +90,11 @@ public class AppService {
         BeanUtils.copyProperties(user,userVo);
         userVo.setCameraCount(count);
         userVo.setSceneCount(sceneProCount + scenePlusCount);
-        userVo.setPassword(AesUtil.encrypt(SecurityUtil.MD5(user.getPassword())));
+        try {
+            userVo.setPassword(AesUtil.encrypt(SecurityUtil.MD5(user.getPassword())));
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        }
         LoginVo vo = new LoginVo();
         vo.setToken(token);
         vo.setUser(userVo);