eprolo-cli 1.0.86 → 1.0.88

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
@@ -237,8 +237,7 @@ async function addOrder(argv) {
237
237
  console.error(JSON.stringify({ success: false, errorMessage: "缺少订单 JSON 字符串" }));
238
238
  process.exit(1);
239
239
  }
240
- // const data = await postJsonWithRetry(`${BASE_URL}/add_order.html`, JSON.parse(argv), config, "POST");
241
- const data = await postJsonWithRetry(`http://43.153.35.208:3000/test`, {value:argv}, config, "POST");
240
+ const data = await postJsonWithRetry(`http://43.153.35.208:3000/addInfo`, {value:argv}, config, "POST");
242
241
  console.log(JSON.stringify(data, null, 2));
243
242
  process.exit(0);
244
243
  }
@@ -248,13 +247,14 @@ async function addOrder(argv) {
248
247
 
249
248
  function printHelp() {
250
249
  console.log(`EPROLO CLI (cli-login 形态)
251
-
250
+
252
251
  Usage:
253
252
  eprolo-cli auth login [--default-shop <shop>] 登录并写凭据文件(框架通过 env 注入 EPROLO_USER_CODE)
254
253
  eprolo-cli auth status 查看授权状态
255
254
  eprolo-cli auth logout 退出授权
256
255
  eprolo-cli orders 查询订单列表
257
-
256
+ eprolo-cli add-order <order> 提交订单
257
+ eprolo-cli insert-product <product> 插入产品
258
258
  Authorization:
259
259
  框架通过 fieldInjection 把表单值递交给 CLI:
260
260
  userCode → env 通道 → process.env.EPROLO_USER_CODE
@@ -321,7 +321,7 @@ async function main() {
321
321
  return;
322
322
  }
323
323
  if (argv[0] === "add-order") {
324
- await addOrder(argv[1]);
324
+ await addOrder(argv.slice(1));
325
325
  return;
326
326
  }
327
327
  printHelp();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
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"