eprolo-cli 1.0.63 → 1.0.65

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
@@ -129,7 +129,7 @@ async function login(argv) {
129
129
 
130
130
  const res = await postJson(LOGIN_API, { openApiKey: userCode });
131
131
 
132
- if (res.data.code !== 0) {
132
+ if (res.data.code != 0) {
133
133
  console.error(JSON.stringify({
134
134
  success: false,
135
135
  errorMessage: res.error || "登录失败",
@@ -141,7 +141,7 @@ async function login(argv) {
141
141
 
142
142
  // const { account, accessToken, accountId, shopId } = res.data;
143
143
  // const config = { account, accessToken, defaultShop, accountId, shopId, version: 1 };
144
- writeConfig(res.data);
144
+ writeConfig(res.data.data);
145
145
 
146
146
  console.log("login ok");
147
147
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eprolo-cli",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
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"