@kevisual/api 0.0.7 → 0.0.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kevisual/api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "mod.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
".": "./mod.ts",
|
|
41
41
|
"./login": "./query/query-login/query-login-browser.ts",
|
|
42
42
|
"./login-node": "./query/query-login/query-login-node.ts",
|
|
43
|
+
"./config": "./query/query-config/query-config.ts",
|
|
44
|
+
"./proxy": "./query/query-proxy/index.ts",
|
|
43
45
|
"./query/**/*.ts": "./query/**/*.ts"
|
|
44
46
|
}
|
|
45
47
|
}
|
|
@@ -479,12 +479,13 @@ await pollLoginStatus(res.token, { tokenSecret: res.tokenSecret });
|
|
|
479
479
|
if (res.code === 200 && res.data?.code === 200) {
|
|
480
480
|
try {
|
|
481
481
|
console.log('网页登录成功');
|
|
482
|
-
return;
|
|
482
|
+
return true;
|
|
483
483
|
} catch (error) {
|
|
484
484
|
console.log('登录失败', error);
|
|
485
|
-
return;
|
|
485
|
+
return false;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
console.log('登录失败', res);
|
|
489
|
+
return false;
|
|
489
490
|
}
|
|
490
491
|
}
|