This commit is contained in:
Leo
2025-11-14 23:55:59 +08:00
parent 2b0587d4e1
commit 026c6bf2a3

View File

@@ -79,7 +79,14 @@ public class InstructionServiceImpl implements IInstructionService {
} }
// TF/H/生/拼多多 生成类指令 // TF/H/生/拼多多 生成类指令
else if (input.startsWith("TF")) { else if (input.startsWith("TF")) {
result = Collections.singletonList(handleTF(input, forceGenerate)); String tfResult = handleTF(input, forceGenerate);
// 如果包含错误码,按 \n\n 分割成多个结果
if (tfResult != null && (tfResult.contains("ERROR_CODE:ADDRESS_DUPLICATE") || tfResult.contains("ERROR_CODE:ORDER_NUMBER_DUPLICATE"))) {
String[] parts = tfResult.split("\n\n");
result = new ArrayList<>(Arrays.asList(parts));
} else {
result = Collections.singletonList(tfResult);
}
} else if (input.startsWith("H")) { } else if (input.startsWith("H")) {
result = Collections.singletonList(handleH(input, forceGenerate)); result = Collections.singletonList(handleH(input, forceGenerate));
} else if (input.startsWith("W")) { } else if (input.startsWith("W")) {