Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 5861e8d

Browse files
committed
优化 日志记录
1 parent ff72503 commit 5861e8d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/src/main/java/tkaxv7s/xposed/sesame/model/task/antForest/AntForestV2.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -964,12 +964,14 @@ private void collectEnergy(CollectEnergyEntity collectEnergyEntity, Boolean join
964964
collected += bubble.getInt("collectedEnergy");
965965
FriendWatch.friendWatch(userId, collected);
966966
if (collected > 0) {
967-
String str = "收取能量🪂[" + UserIdMap.getMaskName(userId) + "]#" + collected + "g耗时[" + spendTime + "]ms";
967+
String str = "收取能量🪂[" + UserIdMap.getMaskName(userId) + "]#" + collected + "g";
968968
if (needDouble) {
969-
str +="[双击]";
969+
Log.forest(str + "耗时[" + spendTime + "]ms[双击]");
970+
Toast.show(str + "[双击]");
971+
} else {
972+
Log.forest(str + "耗时[" + spendTime + "]ms");
973+
Toast.show(str);
970974
}
971-
Log.forest(str);
972-
Toast.show(str);
973975
totalCollected += collected;
974976
Statistics.addData(Statistics.DataType.COLLECTED, collected);
975977
} else {

0 commit comments

Comments
 (0)