tt-help-cli-ycl 1.4.55 → 1.4.56
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/webserver/server.mjs +4 -1
package/package.json
CHANGED
package/src/webserver/server.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import http from "http";
|
|
|
2
2
|
import os from "os";
|
|
3
3
|
import { TikTokScraper } from "../lib/tiktok-scraper.mjs";
|
|
4
4
|
import { getProductInfo } from "../lib/shop-scraper.mjs";
|
|
5
|
+
import { userId as configUserId } from "../lib/constants.js";
|
|
5
6
|
|
|
6
7
|
// ---- 工具函数 ----
|
|
7
8
|
|
|
@@ -254,7 +255,9 @@ async function notifyCaptchaToWatch(url, maxRetries = 3) {
|
|
|
254
255
|
method: "POST",
|
|
255
256
|
headers: { "Content-Type": "application/json" },
|
|
256
257
|
body: JSON.stringify({
|
|
257
|
-
userId:
|
|
258
|
+
userId:
|
|
259
|
+
configUserId ||
|
|
260
|
+
`webserver-${process.env.HOSTNAME || os.hostname() || "unknown"}`,
|
|
258
261
|
errorType: "captcha",
|
|
259
262
|
errorMessage:
|
|
260
263
|
"TikTok Shop captcha detected, browser opened - manual intervention required",
|