zwhui 1 tahun lalu
induk
melakukan
c63bf26d85

+ 2 - 3
wholesale/src/main/java/com/yhlxj/service/wholesale/impl/WebInfoServiceImpl.java

@@ -169,12 +169,11 @@ public class WebInfoServiceImpl extends ServiceImpl<WebInfoMapper, WebInfo> impl
             throw new BusinessRuntimeException("店铺已停止运营.");
         }
 
-        String encodePasscode = Codec.DoDigest.custom().setAlgorithm(Codec.DoDigest.Algorithm.SHA256).setStringData(passWord).toBase64String();
+        //String encodePasscode = Codec.DoDigest.custom().setAlgorithm(Codec.DoDigest.Algorithm.SHA256).setStringData(passWord).toBase64String();
 
-        if (!StringUtils.equals(webInfo.getPassword(), encodePasscode)) {
+        if (!StringUtils.equals(webInfo.getPassword(), passWord)) {
             throw new BusinessRuntimeException("密码有误.");
         }
-        webInfo.setPassword(null);
         return webInfo;
     }
 }