aidaV1.2
update the code until 25 May 2023
This commit is contained in:
@@ -134,7 +134,7 @@ public class PythonService {
|
||||
PythonToJavaApiOperationTypeEnum operationType = PythonToJavaApiOperationTypeEnum.uploadOf(operateType);
|
||||
Assert.notNull(operationType, "unknown operateType " + operateType + "!");
|
||||
String path = calculateFileUrl(operationType);
|
||||
File generateFile = FileUtil.upload(file, path);
|
||||
File generateFile = FileUtil.upload2(file, path);
|
||||
|
||||
String linuxDomain = fileProperties.getLinuxDomain();
|
||||
if (!StringUtils.isEmpty(linuxDomain)) {
|
||||
@@ -1274,6 +1274,9 @@ public class PythonService {
|
||||
return null;
|
||||
}
|
||||
DesignPythonItemPrint print = CopyUtil.copyObject(printObject, DesignPythonItemPrint.class);
|
||||
if(StringUtils.isEmpty(printObject.getPath())){
|
||||
print.setPath("none");
|
||||
}
|
||||
if (StringUtils.isEmpty(clothesPath)
|
||||
|| "none".equals(clothesPath)
|
||||
|| CollectionUtils.isEmpty(printObject.getLocation())) {
|
||||
@@ -1286,6 +1289,7 @@ public class PythonService {
|
||||
location.set(0, location.get(0) * fileVO.getWidth());
|
||||
location.set(1, location.get(1) * fileVO.getHigh());
|
||||
});
|
||||
|
||||
log.info("本次print打点locations###{}###fileVO{}", locations, JSON.toJSONString(fileVO));
|
||||
return print;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user