tt-help-cli-ycl 1.3.27 → 1.3.28
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/package.json +1 -1
- package/src/cli/explore.js +7 -1
package/package.json
CHANGED
package/src/cli/explore.js
CHANGED
|
@@ -129,6 +129,9 @@ export async function handleExplore(options) {
|
|
|
129
129
|
|
|
130
130
|
const page = await getOrCreatePage(browser);
|
|
131
131
|
|
|
132
|
+
// 先导航到 TikTok 首页,再检测登录状态
|
|
133
|
+
await page.goto("https://www.tiktok.com", { waitUntil: "domcontentloaded" });
|
|
134
|
+
|
|
132
135
|
// 检测登录状态(启动时只检测一次)
|
|
133
136
|
let loggedIn = await isLoggedIn(page);
|
|
134
137
|
console.error(`登录状态: ${loggedIn ? "已登录" : "未登录"}`);
|
|
@@ -174,7 +177,10 @@ export async function handleExplore(options) {
|
|
|
174
177
|
userDataDir: nextAccount.userDataDir,
|
|
175
178
|
});
|
|
176
179
|
console.error(`[健康检查] 已切换到端口 ${nextAccount.port}`);
|
|
177
|
-
//
|
|
180
|
+
// 切换账户后先导航到 TikTok,再重新检测登录状态
|
|
181
|
+
await page.goto("https://www.tiktok.com", {
|
|
182
|
+
waitUntil: "domcontentloaded",
|
|
183
|
+
});
|
|
178
184
|
loggedIn = await isLoggedIn(page);
|
|
179
185
|
console.error(
|
|
180
186
|
`[健康检查] 新账户登录状态: ${loggedIn ? "已登录" : "未登录"}`,
|