eprolo-cli 1.0.35 → 1.0.38

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
@@ -122,10 +122,10 @@ async function login(argv) {
122
122
  method: "POST", headers: { "Content-Type": "application/json" },
123
123
  body: JSON.stringify({ userCode }),
124
124
  });
125
- // if (!res.ok) { console.error("密文无效或已吊销,请到账号设置页重新复制"); process.exit(1); }
125
+ if (!res.ok) { console.error("密文无效或已吊销,请到账号设置页重新复制"); process.exit(1); }
126
126
 
127
- const { account, accessToken } = await res.json();
128
- await writeCredentialFile({ account, accessToken, defaultShop }); // → D3
127
+ const { account, accessToken,accountId,shopId } = await res.json();
128
+ writeConfig({ account, accessToken, defaultShop,accountId,shopId }); // → D3
129
129
  console.log("login ok"); // 不打印任何敏感值
130
130
  process.exit(0);
131
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.35",
3
+ "version": "1.0.38",
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"