eprolo-cli 1.0.3 → 1.0.5

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/bin/eprolo-cli.js CHANGED
@@ -8,7 +8,7 @@ const os = require("os");
8
8
  const path = require("path");
9
9
  const readline = require("readline");
10
10
 
11
- const BASE_URL = process.env.DXB_API_BASE_URL || "https://wixtest.eprolo.com/aw/auth";
11
+ const BASE_URL = process.env.DXB_API_BASE_URL || "https://goods.dianxiaobao.net/api-goods/productBatchOpenAgent";
12
12
  const CONFIG_DIR = path.join(os.homedir(), ".dxb-toolkit");
13
13
  const CONFIG_FILE = path.join(CONFIG_DIR, "config.json");
14
14
 
@@ -281,7 +281,7 @@ async function main() {
281
281
  if (args.payloadJson) body.payload = JSON.parse(args.payloadJson);
282
282
  if (args.dataJson) body.data = JSON.parse(args.dataJson);
283
283
  if (args.sourceUrlList) body.sourceUrlList = splitIds(args.sourceUrlList);
284
- printResult(await postJson(baseUrl, "/submit", body), args.json);
284
+ printResult(await postJson(baseUrl, "", body), args.json);
285
285
  return;
286
286
  }
287
287
 
@@ -289,7 +289,7 @@ async function main() {
289
289
  if (!args.planId) throw new Error("status ai requires --plan-id");
290
290
  const auth = requireAuth(args);
291
291
  const target = requireTaskTarget(args);
292
- printResult(await postJson(baseUrl, "/aiReleaseStatus", {
292
+ printResult(await postJson(baseUrl, "", {
293
293
  planId: args.planId,
294
294
  userCode: auth.userCode,
295
295
  storeName: target.storeName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "CLI for Dianxiaobao ICBU AI publishing, authorization profile management, task submission, and task status checks.",
5
5
  "bin": {
6
6
  "eprolo": "bin/eprolo-cli.js"