eprolo-cli 1.0.29 → 1.0.31
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
|
@@ -152,7 +152,7 @@ async function login(argv) {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
// 校验成功,写凭据文件
|
|
155
|
-
const account = accountAlias || verifyResult.
|
|
155
|
+
const account = accountAlias || verifyResult.accessToken || defaultShop || "unknown";
|
|
156
156
|
const config = {
|
|
157
157
|
account, // 顶层明文,框架读它做卡片标签
|
|
158
158
|
userCode,
|
|
@@ -213,7 +213,7 @@ async function authVerify(argv) {
|
|
|
213
213
|
config.userCode;
|
|
214
214
|
|
|
215
215
|
try {
|
|
216
|
-
const result = await postJson(VERIFY_URL, { userCode });
|
|
216
|
+
const result = await postJson(VERIFY_URL, { 'openApiKey':userCode });
|
|
217
217
|
console.log(JSON.stringify({
|
|
218
218
|
success: true,
|
|
219
219
|
connected: true,
|
package/package.json
CHANGED