Просмотр исходного кода

Merge branch '20250508-wyp-base64' of Server/growth-manager into master

wangyunpeng 1 месяц назад
Родитель
Сommit
039994ba5e

+ 2 - 2
api-module/src/main/java/com/tzld/piaoquan/api/service/contentplatform/impl/ContentPlatformAccountServiceImpl.java

@@ -52,7 +52,7 @@ public class ContentPlatformAccountServiceImpl implements ContentPlatformAccount
         }
         Long now = System.currentTimeMillis();
         if (StringUtils.hasText(param.getPassword())) {
-            String password = Arrays.toString(Base64.getDecoder().decode(param.getPassword()));
+            String password = new String(Base64.getDecoder().decode(param.getPassword()));
             String md5Password = Md5Util.encoderByMd5(password);
             if (!account.getPassword().equals(md5Password)) {
                 throw new CommonException(ExceptionEnum.LOGIN_PASSWORD_WRONG);
@@ -202,7 +202,7 @@ public class ContentPlatformAccountServiceImpl implements ContentPlatformAccount
         account.setContactName(param.getContactName());
         account.setTelNum(param.getTelNum());
         if (StringUtils.hasText(param.getPassword())) {
-            String password = Arrays.toString(Base64.getDecoder().decode(param.getPassword()));
+            String password = new String(Base64.getDecoder().decode(param.getPassword()));
             account.setPassword(Md5Util.encoderByMd5(password));
         }
         account.setUpdateAccount(param.getOperator());