eprolo-cli 1.0.82 → 1.0.83
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 +2 -2
- package/package.json +1 -1
package/bin/eprolo-cli.js
CHANGED
|
@@ -231,7 +231,7 @@ async function insertProduct(argv) {
|
|
|
231
231
|
process.exit(0);
|
|
232
232
|
}
|
|
233
233
|
async function addOrder(argv) {
|
|
234
|
-
console.log('addOrder',
|
|
234
|
+
console.log('addOrder:', argv);
|
|
235
235
|
const config = readConfig();
|
|
236
236
|
if (!argv) {
|
|
237
237
|
console.error(JSON.stringify({ success: false, errorMessage: "缺少订单 JSON 字符串" }));
|
|
@@ -320,7 +320,7 @@ async function main() {
|
|
|
320
320
|
return;
|
|
321
321
|
}
|
|
322
322
|
if (argv[0] === "add-order") {
|
|
323
|
-
await addOrder(argv
|
|
323
|
+
await addOrder(argv[1]);
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
326
|
printHelp();
|
package/package.json
CHANGED