eprolo-cli 1.0.120 → 1.0.122

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.
Files changed (2) hide show
  1. package/bin/eprolo-cli.js +10 -10
  2. package/package.json +1 -1
package/bin/eprolo-cli.js CHANGED
@@ -189,7 +189,7 @@ async function queryOrders(orderId) {
189
189
  console.error(JSON.stringify({ success: false, errorMessage: "缺少订单 ID" }));
190
190
  process.exit(1);
191
191
  }
192
- const data = await postJsonWithRetry(BASE_URL+"/order.html", {page_index: 0, page_size: 1, order_id: orderId}, config, "GET");
192
+ const data = await postJsonWithRetry(BASE_URL+"/order_list.html", {page_index: 0, page_size: 1, order_id: orderId}, config, "GET");
193
193
  console.log(JSON.stringify(data, null, 2));
194
194
  process.exit(0);
195
195
  }
@@ -403,28 +403,28 @@ async function main() {
403
403
  return;
404
404
  }
405
405
 
406
- if (argv[0] === "orders") {
406
+ if (argv[0] === "eprolo" && argv[1]=== "orders" ) {
407
407
  await queryOrders(argv[2]);
408
408
  return;
409
409
  }
410
- if (argv[0] === "list") {
410
+ if (argv[0] === "eprolo" && argv[1]=== "list" ) {
411
411
  await queryOrderList();
412
412
  return;
413
413
  }
414
- if (argv[0] === "product") {
415
- await queryProductId(argv[1]);
414
+ if (argv[0] === "eprolo" && argv[1]=== "product" ) {
415
+ await queryProductId(argv[2]);
416
416
  return;
417
417
  }
418
- if (argv[0] === "product-list") {
418
+ if (argv[0] === "eprolo" && argv[1]=== "product-list" ) {
419
419
  await queryProductList();
420
420
  return;
421
421
  }
422
- if (argv[0] === "insert-product") {
423
- await insertProduct(argv[1]);
422
+ if (argv[0] === "eprolo" && argv[1]=== "insert-product" ) {
423
+ await insertProduct(argv[2]);
424
424
  return;
425
425
  }
426
- if (argv[0] === "add-order") {
427
- await addOrder(argv[1]);
426
+ if (argv[0] === "eprolo" && argv[1]=== "add-order" ) {
427
+ await addOrder(argv[2]);
428
428
  return;
429
429
  }
430
430
  printHelp();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
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"