bugfix : fast || high

This commit is contained in:
徐佩
2024-12-01 16:32:51 +08:00
parent a237b4041d
commit b836e7fd67
2 changed files with 12 additions and 1 deletions

View File

@@ -150,6 +150,14 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> i
String port = generateServicePort;
String jsonString = "";
HashMap<String, String> params = new HashMap<>();
String version = null;
if (!StringUtil.isNullOrEmpty(generateThroughImageTextDTO.getVersion()) && generateThroughImageTextDTO.getVersion().equals("high")){
version = "high";
params.put("version","high");
}else if (!StringUtil.isNullOrEmpty(generateThroughImageTextDTO.getVersion()) && generateThroughImageTextDTO.getVersion().equals("fast")){
version = "fast";
params.put("version","fast");
}
// 3.1 确定不同类型的印花分别调哪个接口
if (generateThroughImageTextDTO.getLevel1Type().equals(PRINT_BOARD.getRealName())) {
switch (generateThroughImageTextDTO.getLevel2Type()) {