ylib-syim 0.0.40 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bridges/main.ts +2 -1
- package/package.json +1 -1
package/bridges/main.ts
CHANGED
|
@@ -4074,7 +4074,8 @@ function readRecentBridgeErrorFromLog(
|
|
|
4074
4074
|
if (!logFilePath || !fs.existsSync(logFilePath)) return null;
|
|
4075
4075
|
const text = fs.readFileSync(logFilePath, "utf-8");
|
|
4076
4076
|
if (!text) return null;
|
|
4077
|
-
|
|
4077
|
+
// 全文件倒序扫描:先定位同平台 error 日志,再匹配账号,避免最后 N 行被其他账号刷掉。
|
|
4078
|
+
const lines = text.split("\n").reverse();
|
|
4078
4079
|
const matched: string[] = [];
|
|
4079
4080
|
|
|
4080
4081
|
const platformHints =
|