hanzhiwei лет назад: 2
Родитель
Сommit
e48f41540a

+ 2 - 1
zd-modules/zd-algorithm/src/main/java/com/zd/alg/forward/serivce/impl/AlgorithmServiceImpl.java

@@ -70,7 +70,8 @@ public class AlgorithmServiceImpl implements AlgorithmService {
         //========= 获取算法INFO ===========
         //========= 获取算法INFO ===========
         AlgorithmYml.CheckValid checkValid = algorithmYml.getCheckValid(Integer.valueOf(code));
         AlgorithmYml.CheckValid checkValid = algorithmYml.getCheckValid(Integer.valueOf(code));
         MultiValueMap<String, Object> params = getStringObjectMultiValueMap(checkValid, id.toString());
         MultiValueMap<String, Object> params = getStringObjectMultiValueMap(checkValid, id.toString());
-        File toFile = new File(rootPath+fileUrl);
+        String filePathParse=fileUrl.replace("/statics","");
+        File toFile = new File(rootPath + filePathParse);
         HttpEntity<MultiValueMap<String, Object>> files = getHttpEntityMap(toFile, params);
         HttpEntity<MultiValueMap<String, Object>> files = getHttpEntityMap(toFile, params);
 
 
         //请求算法服务
         //请求算法服务