提交 61392565 编写于 作者: Y youyong205

modify the mark init

上级 a2f7a72f
......@@ -91,11 +91,15 @@ public class MessageIdFactory {
File mark = new File("/data/appdatas/cat/", "cat-" + domain + ".mark");
if (!mark.exists()) {
boolean success = mark.createNewFile();
boolean success = true;
try {
success = mark.createNewFile();
} catch (Exception e) {
success = false;
}
if (!success) {
String tmpDir = System.getProperty("java.io.tmpdir");
mark = new File(tmpDir, "cat-" + domain + ".mark");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册