eprolo-cli 1.0.118 → 1.0.120

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
@@ -189,13 +189,13 @@ 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.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
  }
196
196
  async function queryOrderList() {
197
197
  const config = readConfig();
198
- const data = await postJsonWithRetry(BASE_URL+"/order_list.html?page_index=0&page_size=10", {}, config, "GET");
198
+ const data = await postJsonWithRetry(BASE_URL+"/order_list.html", {page_index: 0, page_size: 10}, config, "GET");
199
199
  console.log(JSON.stringify(data, null, 2));
200
200
  process.exit(0);
201
201
  }
@@ -205,13 +205,13 @@ 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(BASE_URL+"/getproduct.html", {id: productId}, config, "GET");
209
209
  console.log(JSON.stringify(data, null, 2));
210
210
  process.exit(0);
211
211
  }
212
212
  async function queryProductList() {
213
213
  const config = readConfig();
214
- const data = await postJsonWithRetry(BASE_URL+"/product_list.html?page_index=0&page_size=10", {}, config, "GET");
214
+ const data = await postJsonWithRetry(BASE_URL+"/product_list.html", {page_index: 0, page_size: 10}, config, "GET");
215
215
  console.log(JSON.stringify(data, null, 2));
216
216
  process.exit(0);
217
217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.118",
3
+ "version": "1.0.120",
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"