Commit 025eb85b by gechengyang

修复mx转mt的输出路径为空的缺陷

parent 3f19e221
......@@ -543,10 +543,14 @@ public abstract class AbstractMx2MtCreator implements Mx2MtCreator {
str.setMtType(getMtType());
str.setMessage(mtStr);
String outputFilePath = (String)context.get(Mx2MtContextIdentifier.MX_TO_MT_OUTPUT_FILE_PATH, true);
if(StringUtil.isNotEmpty(outputFilePath))
{
File destFile=new File(outputFilePath);
if(destFile!=null&&(!destFile.getParentFile().exists())){
destFile.getParentFile().mkdirs();
}
}
if (StringUtil.isNotEmpty(outputFilePath)) {
write(swiftMessage, new File(outputFilePath));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment