Selaa lähdekoodia

优化构建逻辑

tianboguang 2 vuotta sitten
vanhempi
commit
6c790ab582

+ 4 - 0
src/main/java/com/fdkankan/contro/service/impl/SceneFileBuildServiceImpl.java

@@ -359,6 +359,8 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
         if (StringUtils.isEmpty(params)) {
             throw new BusinessException(ErrorCode.PARAM_REQUIRED);
         }
+        params = params.replaceAll("%2B", "+");
+        params = params.replaceAll(" ", "+");
         Base64 base64 = new Base64();
         String cipher = params;
         // 私钥解密过程
@@ -414,6 +416,8 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
         if (StringUtils.isEmpty(params)) {
             throw new BusinessException(ErrorCode.PARAM_REQUIRED);
         }
+        params = params.replaceAll("%2B", "+");
+        params = params.replaceAll(" ", "+");
         Base64 base64 = new Base64();
         String cipher = params;
         // 私钥解密过程