优化逻辑

This commit is contained in:
chenjuntao
2020-01-16 09:42:29 +08:00
parent e0e7cbd2a3
commit e0a82f5050
2 changed files with 9 additions and 4 deletions

View File

@ -139,7 +139,7 @@ public class LogUtils {
e.printStackTrace();
}
uploadToCommunity(object);
uploadToCommunity(object, true);
}
public static void uploadAnswerReadTime(String tracers, int readTime, String answerId, Questions questions, String communityId, String CommunityName, SpecialColumn specialColumn) {
@ -241,7 +241,7 @@ public class LogUtils {
e.printStackTrace();
}
uploadToCommunity(object);
uploadToCommunity(object, true);
}
public static void qaAccess(String access, CommunityEntity communityEntity) {
@ -277,8 +277,12 @@ public class LogUtils {
uploadToReservation(object);
}
private static void uploadToCommunity(JSONObject object) {
uploadToCommunity(object, false);
}
private static void uploadToCommunity(JSONObject object, boolean forcedUpload) {
if (BuildConfig.DEBUG) {
Utils.log("LogUtils->" + object.toString());
}
@ -301,7 +305,7 @@ public class LogUtils {
}
// 暂时除了曝光外的数据都是扔到 community 这个库的,要是不是这个这个库的话这里要改一下
LoghubUtils.log(object, "community", true);
LoghubUtils.log(object, "community", forcedUpload);
}
/**