|
@@ -13,6 +13,13 @@ import java.util.regex.Matcher;
|
|
|
public class FileUtils {
|
|
|
|
|
|
public static void writeUtf8String(final Object content, final String filePath ) {
|
|
|
- FileUtil.writeUtf8String(JSON.toJSONStringWithDateFormat(content,"yyyy-MM-dd HH:mm:ss"), filePath.replaceAll("/", Matcher.quoteReplacement(File.separator)));
|
|
|
+ String data = JSON.toJSONStringWithDateFormat(content, "yyyy-MM-dd HH:mm:ss");
|
|
|
+ //清空所有域名
|
|
|
+ data.replaceAll("https://ossxiaoan.4dage.com", "");
|
|
|
+ data.replaceAll("https://4dkk.4dage.com", "");
|
|
|
+ data.replaceAll("https://testeurs3.4dkankan.com", "");
|
|
|
+ data.replaceAll("https://eurs3.4dkankan.com", "");
|
|
|
+ data.replaceAll("//", "/");
|
|
|
+ FileUtil.writeUtf8String(data, filePath.replaceAll("/", Matcher.quoteReplacement(File.separator)));
|
|
|
}
|
|
|
}
|