eprolo-cli 1.0.96 → 1.0.97

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
@@ -263,14 +263,14 @@ async function insertProduct(arg) {
263
263
  if(index==0){
264
264
  optionList.push({name:option.name});
265
265
  }
266
- newInfo['option_'+optionIndex]=option.name;
266
+ newInfo['option'+optionIndex]=option.name;
267
267
  })
268
268
  variantsList.push(newInfo);
269
269
  })
270
270
  product.media.edges.forEach((edge)=>{
271
271
  imageList.push({src:edge.url,images_id:getId(edge.id)});
272
272
  })
273
- const data = await postJsonWithRetry(`http://43.153.35.208:3000/insertProduct`, info, config, "POST");
273
+ const data = await postJsonWithRetry(BASE_URL+'/insert_product.html', info, config, "POST");
274
274
  console.log(JSON.stringify(data, null, 2));
275
275
  process.exit(0);
276
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.96",
3
+ "version": "1.0.97",
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"