eprolo-cli 1.0.126 → 1.0.127

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
@@ -205,7 +205,7 @@ async function queryProductId(productId) {
205
205
  console.error(JSON.stringify({ success: false, errorMessage: "缺少产品 ID" }));
206
206
  process.exit(1);
207
207
  }
208
- const data = await postJsonWithRetry(BASE_URL+"/getproduct.html", {id: productId}, config, "GET");
208
+ const data = await postJsonWithRetry("https://eprolo.com/app/getProductInfo.html", {id: productId}, config, "GET");
209
209
  console.log(JSON.stringify(data, null, 2));
210
210
  process.exit(0);
211
211
  }
@@ -307,7 +307,7 @@ async function placeOrder(arg) {
307
307
  // 修改订单地址
308
308
  async function modifyOrderAddress(arg){
309
309
  const config = readConfig();
310
- const product = JSON.parse(arg);
310
+ const product = JSON.parse(readPayload(arg));
311
311
  const result = await postJsonWithRetry(BASE_URL + '/modify_order_address.html',product , config, "POST");
312
312
  console.log(JSON.stringify(result, null, 2));
313
313
  process.exit(0);
@@ -447,7 +447,7 @@ async function main() {
447
447
  await placeOrder(argv[1]);
448
448
  return;
449
449
  }
450
- if (argv[0] === "modify-order-address" ) {
450
+ if (argv[0] === "modify-order-address" ) {
451
451
  await modifyOrderAddress(argv[1]);
452
452
  return;
453
453
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.126",
3
+ "version": "1.0.127",
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"