From 8a5aa6ad832f0cfbdcbd0c505ee0c505c32a6fa8 Mon Sep 17 00:00:00 2001 From: HChen Date: Mon, 8 Apr 2024 17:25:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/sevtinge/hyperceiler/safe/CrashData.java | 2 +- .../main/java/com/sevtinge/hyperceiler/safe/CrashHook.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/sevtinge/hyperceiler/safe/CrashData.java b/app/src/main/java/com/sevtinge/hyperceiler/safe/CrashData.java index 0982d77b2b..8d2d686a46 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/safe/CrashData.java +++ b/app/src/main/java/com/sevtinge/hyperceiler/safe/CrashData.java @@ -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; } diff --git a/app/src/main/java/com/sevtinge/hyperceiler/safe/CrashHook.java b/app/src/main/java/com/sevtinge/hyperceiler/safe/CrashHook.java index ae1a62b842..6025abbb73 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/safe/CrashHook.java +++ b/app/src/main/java/com/sevtinge/hyperceiler/safe/CrashHook.java @@ -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 arrayList = new ArrayList<>(); ArrayList report = getReportCrash(); - arrayList.add(new CrashRecord(mPkg, timeMillis, 0).toJSON()); // 添加本次崩溃记录 + arrayList.add(new CrashRecord(mPkg, timeMillis, 0).toJSON()); data = getCrashRecord(); longTimeRemove(); if (!data.isEmpty()) {