1
This commit is contained in:
@@ -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")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user