|
@@ -12,14 +12,14 @@ import java.util.regex.Matcher;
|
|
|
*/
|
|
|
public class FileUtils {
|
|
|
|
|
|
- public static void writeUtf8String(final Object content, final String filePath ) {
|
|
|
- String data = JSON.toJSONStringWithDateFormat(content, "yyyy-MM-dd HH:mm:ss");
|
|
|
+ public static void writeUtf8String(final Object content, final String filePath) {
|
|
|
+ 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("//", "/");
|
|
|
+ data=data.replaceAll("https://ossxiaoan.4dage.com", "")
|
|
|
+ .replaceAll("https://4dkk.4dage.com", "")
|
|
|
+ .replaceAll("https://testeurs3.4dkankan.com", "")
|
|
|
+ .replaceAll("https://eurs3.4dkankan.com", "")
|
|
|
+ .replaceAll("//", "/");
|
|
|
FileUtil.writeUtf8String(data, filePath.replaceAll("/", Matcher.quoteReplacement(File.separator)));
|
|
|
}
|
|
|
}
|