Skip to content

Commit

Permalink
优化: string
Browse files Browse the repository at this point in the history
  • Loading branch information
HChenX committed Apr 8, 2024
1 parent 059a1c8 commit 8a5aa6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public static JSONObject putParam(JSONObject jsonObject, long time, int count) {
jsonObject.put("t", time);
return jsonObject;
} catch (JSONException e) {
logE(TAG, "Failed to set the number of times!" + e);
logE(TAG, "Failed to update data!" + e);
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ private void recordCrash(Context mContext, Object proc, ApplicationErrorReport.C
throwFileName = crashInfo.throwFileName;
throwLineNumber = crashInfo.throwLineNumber;
throwMethodName = crashInfo.throwMethodName;
if (!isScopeApp()) return; // 不属于作用域范围
if (!isScopeApp()) return;
ArrayList<JSONObject> arrayList = new ArrayList<>();
ArrayList<JSONObject> report = getReportCrash();
arrayList.add(new CrashRecord(mPkg, timeMillis, 0).toJSON()); // 添加本次崩溃记录
arrayList.add(new CrashRecord(mPkg, timeMillis, 0).toJSON());
data = getCrashRecord();
longTimeRemove();
if (!data.isEmpty()) {
Expand Down

0 comments on commit 8a5aa6a

Please sign in to comment.