Skip to content

Commit

Permalink
更新日志记录和消息显示,增加开发者提示,优化模块加载成功和失败的提示信息。
Browse files Browse the repository at this point in the history
  • Loading branch information
Fansirsqi committed Dec 10, 2024
1 parent fb68a85 commit 6815bc2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public void run() {
Log.record("应用版本:" + alipayVersion.getVersionString());
Log.record("模块版本:" + modelVersion);
Log.record("开始执行");
Log.record("[🔥开发者提示!!]只收能量时间段为:"+BaseModel.getEnergyTime().getValue()+" \n该时间段内不会执行其他任务..若其他任务无日志,请到设置中自行调整");
try {
int checkInterval = BaseModel.getCheckInterval().getValue();
if (lastExecTime + 2000 > System.currentTimeMillis()) {
Expand Down Expand Up @@ -588,16 +589,16 @@ protected void beforeHookedMethod(MethodHookParam param) {
StatusUtil.load();
updateDay();
BaseModel.initData();
Log.record("加载完成");
Toast.show("芝麻粒加载成功");
Log.record("模块加载完成 🎉");
Toast.show("芝麻粒-TK 加载成功🎉");
}
offline = false;
execHandler();
return true;
} catch (Throwable th) {
Log.runtime(TAG, "startHandler err:");
Log.printStackTrace(TAG, th);
Toast.show("芝麻粒加载失败");
Toast.show("芝麻粒加载失败 🎃");
return false;
}
}
Expand Down

0 comments on commit 6815bc2

Please sign in to comment.