eprolo-cli 1.0.19 → 1.0.21

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.
Files changed (2) hide show
  1. package/bin/eprolo-cli.js +2 -16
  2. package/package.json +1 -1
package/bin/eprolo-cli.js CHANGED
@@ -8,7 +8,7 @@ const os = require("os");
8
8
  const path = require("path");
9
9
  const readline = require("readline");
10
10
 
11
- const BASE_URL = "https://wixtest.eprolo.com/aw/auth";
11
+ const BASE_URL = "http://43.153.35.208:8080/aw/auth";
12
12
  const CONFIG_DIR = path.join(os.homedir(), ".dxb-toolkit");
13
13
  const CONFIG_FILE = path.join(CONFIG_DIR, "config.json");
14
14
 
@@ -211,21 +211,7 @@ async function main() {
211
211
  // })
212
212
  const args = parseArgs(process.argv.slice(2));
213
213
  const [group, command] = args._;
214
- const baseUrl = BASE_URL;
215
- printResult({
216
- success: true,
217
- connected: true,
218
- account: '000',
219
- defaultStoreName: '1111'
220
- }, args.json);
221
- return;
222
- const auth = requireAuth(args);
223
- const target = requireTaskTarget(args);
224
- printResult(await postJson(baseUrl, "", {
225
- planId: args.planId,
226
- userCode: auth.userCode,
227
- storeName: target.storeName
228
- }), args.json);
214
+ const baseUrl = args.baseUrl || BASE_URL;
229
215
  if (!group || args.help || args.h) {
230
216
  printHelp();
231
217
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
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"