ソースを参照

sendCallAlgorithm接口去掉details解密

dsx 2 年 前
コミット
3828124fea

+ 13 - 12
src/main/java/com/fdkankan/contro/service/impl/SceneFileBuildServiceImpl.java

@@ -865,18 +865,19 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
         log.info("sendCallAlgorithm 参数为:{}", JSONObject.toJSONString(param));
 
         String filePath = param.getFilepath();
-        String details = param.getDetails()
-                .replace("base64_urlsafe:","")
-                .replaceAll("-","+")
-                .replaceAll("_","/")
-                .concat("==");
-        try {
-            details = cn.hutool.core.codec.Base64.decodeStr(details);
-        }catch (Exception e){
-            log.error("details解密报错,details:{}", details);
-            log.error("details解密报错", e);
-            return ResultData.error(ErrorCode.PARAM_FORMAT_ERROR);
-        }
+//        String details = param.getDetails()
+//                .replace("base64_urlsafe:","")
+//                .replaceAll("-","+")
+//                .replaceAll("_","/")
+//                .concat("==");
+//        try {
+//            details = cn.hutool.core.codec.Base64.decodeStr(details);
+//        }catch (Exception e){
+//            log.error("details解密报错,details:{}", details);
+//            log.error("details解密报错", e);
+//            return ResultData.error(ErrorCode.PARAM_FORMAT_ERROR);
+//        }
+        String details = param.getDetails();
         SendCallAlgorithmDetail detail = JSON.parseObject(details, SendCallAlgorithmDetail.class);
         Integer fileChunkSum = detail.getFileChunkSum();