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 +3 -3
- package/package.json +1 -1
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.
|
|
147
|
-
statusCode: res.
|
|
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/
|
|
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