eprolo-cli 1.0.42 → 1.0.44

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
@@ -7,7 +7,7 @@ const path = require("path");
7
7
  const http = require("http");
8
8
 
9
9
  const LOGIN_API = "https://wixtest.eprolo.com/v1/auth/verify-code";
10
- const CONFIG_DIR = path.join(os.homedir(), ".dxb-toolkit");
10
+ const CONFIG_DIR = path.join(os.homedir(), ".eprolo-toolkit");
11
11
  const CONFIG_FILE = path.join(CONFIG_DIR, "config.json");
12
12
 
13
13
  // ---------------------------------------------------------------------------
@@ -120,7 +120,7 @@ async function login(argv) {
120
120
 
121
121
  const res = await fetch(LOGIN_API, {
122
122
  method: "POST", headers: { "Content-Type": "application/json" },
123
- body: JSON.stringify({ userCode }),
123
+ body: JSON.stringify({ openApiKey:userCode }),
124
124
  });
125
125
  // if (!res.ok) { console.error("密文无效或已吊销,请到账号设置页重新复制"); process.exit(1); }
126
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
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"