eprolo-cli 1.0.64 → 1.0.66
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 +2 -2
- package/package.json +1 -1
package/bin/eprolo-cli.js
CHANGED
|
@@ -110,7 +110,7 @@ async function postJsonWithRetry(url, body, config) {
|
|
|
110
110
|
err.response = refreshRes.data;
|
|
111
111
|
throw err;
|
|
112
112
|
}
|
|
113
|
-
}else if (result.data.code !=
|
|
113
|
+
}else if (result.data.code != 0) {
|
|
114
114
|
const err = new Error(`HTTP ${result.statusCode}`);
|
|
115
115
|
err.response = 6666;
|
|
116
116
|
throw err;
|
|
@@ -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