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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tt-help-cli-ycl",
3
- "version": "1.4.55",
3
+ "version": "1.4.56",
4
4
  "description": "TikTok user & video data scraper - extract ttSeller, verified, locationCreated from HTML source",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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: `webserver-${process.env.HOSTNAME || os.hostname() || "unknown"}`,
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",