Parcourir la source

相机登录返回明文密码

lyhzzz il y a 2 ans
Parent
commit
840b25cc88

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

@@ -105,7 +105,7 @@ public class AppSceneService {
                 record.setStatus(-1);
             }
             if(record.getCameraId() == null){
-                record.setSceneSourceType(record.getUserId().longValue() ==param.getUserId() ? 1 : 2);
+                record.setSceneSourceType(record.getUserId().longValue() == param.getUserId() ? 1 : 2);
             }else {
                 Camera camera = cameraHashMap.get(record.getCameraId());
                 if(ObjectUtils.isEmpty(camera)){

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

@@ -83,6 +83,7 @@ public class AppService {
         UserVo userVo = new UserVo();
         userVo.setCameraCount(count);
         userVo.setSceneCount(sceneProCount + scenePlusCount);
+        userVo.setPassword(SecurityUtil.MD5(user.getPassword()));
         BeanUtils.copyProperties(user,userVo);
         LoginVo vo = new LoginVo();
         vo.setToken(token);