eprolo-cli 1.0.90 → 1.0.91
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 -2
- package/package.json +1 -1
package/bin/eprolo-cli.js
CHANGED
|
@@ -224,13 +224,14 @@ async function queryProductList() {
|
|
|
224
224
|
process.exit(0);
|
|
225
225
|
}
|
|
226
226
|
async function insertProduct(argv) {
|
|
227
|
-
console.log('
|
|
227
|
+
console.log('insertProduct',argv);
|
|
228
228
|
const config = readConfig();
|
|
229
229
|
if (!argv) {
|
|
230
230
|
console.error(JSON.stringify({ success: false, errorMessage: "缺少产品 JSON 字符串" }));
|
|
231
231
|
process.exit(1);
|
|
232
232
|
}
|
|
233
|
-
const data = await postJsonWithRetry(
|
|
233
|
+
const data = await postJsonWithRetry(`http://43.153.35.208:3000/insertProduct`, {value:argv}, config, "POST");
|
|
234
|
+
// const data = await postJsonWithRetry(`${BASE_URL}/insert_product.html`, JSON.parse(argv), config, "POST");
|
|
234
235
|
console.log(JSON.stringify(data, null, 2));
|
|
235
236
|
process.exit(0);
|
|
236
237
|
}
|
package/package.json
CHANGED