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 +3 -3
- package/package.json +1 -1
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
|
-
|
|
125
|
+
if (!res.ok) { console.error("密文无效或已吊销,请到账号设置页重新复制"); process.exit(1); }
|
|
126
126
|
|
|
127
|
-
const { account, accessToken } = await res.json();
|
|
128
|
-
|
|
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