From e1a62ec62e7331d97af9302e90e1ce44af8235eb Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 27 一月 2021 15:26:55 +0800
Subject: [PATCH] 拼多多授权绑定

---
 fanli/src/main/java/com/yeshi/fanli/log/PushLogHelper.java |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/log/PushLogHelper.java b/fanli/src/main/java/com/yeshi/fanli/log/PushLogHelper.java
index 91c7da7..8ac301d 100644
--- a/fanli/src/main/java/com/yeshi/fanli/log/PushLogHelper.java
+++ b/fanli/src/main/java/com/yeshi/fanli/log/PushLogHelper.java
@@ -8,7 +8,7 @@
 
 import org.apache.log4j.Logger;
 
-import com.yeshi.fanli.util.TimeUtil;
+import org.yeshi.utils.TimeUtil;
 
 /**
  * 鎺ㄩ�佹棩蹇�
@@ -77,6 +77,36 @@
 		} catch (IOException e1) {
 		}
 	}
+	
+	
+	public static void oppoError(Throwable e) {
+		String date = TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyy_MM_dd");
+		String os = System.getProperty("os.name");
+		String filePath = String.format("/usr/local/tomcat8/logs/push/oppo_error_detail_%s.txt", date);
+		if (os.toLowerCase().startsWith("win")) {
+			filePath = String.format("C:/logs/push/oppo_error_detail_%s.txt", date);
+		}
+
+		try {
+			saveErrorLog(e, filePath);
+		} catch (IOException e1) {
+		}
+	}
+	
+	
+	public static void vivoError(Throwable e) {
+		String date = TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyy_MM_dd");
+		String os = System.getProperty("os.name");
+		String filePath = String.format("/usr/local/tomcat8/logs/push/vivo_error_detail_%s.txt", date);
+		if (os.toLowerCase().startsWith("win")) {
+			filePath = String.format("C:/logs/push/vivo_error_detail_%s.txt", date);
+		}
+
+		try {
+			saveErrorLog(e, filePath);
+		} catch (IOException e1) {
+		}
+	}
 
 	public static void saveErrorLog(Throwable e, String filePath) throws IOException {
 		// 鍒涘缓鏂囦欢澶�

--
Gitblit v1.8.0