eprolo-cli 1.0.87 → 1.0.89

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
@@ -143,8 +143,8 @@ async function login(argv) {
143
143
  if (res.data.code != 0) {
144
144
  console.error(JSON.stringify({
145
145
  success: false,
146
- errorMessage: res.error || "登录失败",
147
- statusCode: res.code,
146
+ errorMessage: res.data.msg || res.data || "登录失败",
147
+ statusCode: res.statusCode,
148
148
  response: res.data.msg
149
149
  }));
150
150
  process.exit(1);
@@ -237,7 +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(`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");
241
241
  console.log(JSON.stringify(data, null, 2));
242
242
  process.exit(0);
243
243
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.87",
3
+ "version": "1.0.89",
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"