eprolo-cli 1.0.34 → 1.0.36

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
@@ -113,7 +113,7 @@ function postJson(url, body) {
113
113
  // ---------------------------------------------------------------------------
114
114
 
115
115
  async function login(argv) {
116
- const userCode = process.env.YOUR_USER_CODE; // env 通道
116
+ const userCode = process.env.DXB_USER_CODE; // env 通道
117
117
  if (!userCode) { console.error("缺少用户密文:请在授权弹窗中填写"); process.exit(2); }
118
118
 
119
119
  const defaultShop = readFlag(argv, "--default-shop"); // arg 通道,可能不存在
@@ -125,7 +125,7 @@ async function login(argv) {
125
125
  // if (!res.ok) { console.error("密文无效或已吊销,请到账号设置页重新复制"); process.exit(1); }
126
126
 
127
127
  const { account, accessToken } = await res.json();
128
- await writeCredentialFile({ account, accessToken, defaultShop }); // → D3
128
+ writeConfig({ account, accessToken, defaultShop }); // → 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.34",
3
+ "version": "1.0.36",
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"