@seayoo-web/gamer-api 2.0.6 → 2.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/README.md +2 -2
- package/dist/index.js +355 -329
- package/package.json +1 -1
- package/types/src/event.config/feature.lottery.d.ts +1 -1
- package/types/src/event.config/reward.d.ts +1 -1
- package/types/src/event.enums.d.ts +6 -0
- package/types/src/weixin.d.ts +11 -1
- package/types/src/weixin.define.d.ts +5 -0
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ export async function login() {
|
|
|
47
47
|
|
|
48
48
|
// 获取用户数据
|
|
49
49
|
export async function getUserInfo() {
|
|
50
|
-
return authToken.
|
|
50
|
+
return authToken.isLoggedIn ? await authToken.getSession() : null;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// 退出登录(同步操作)
|
|
@@ -92,7 +92,7 @@ export function login() {
|
|
|
92
92
|
|
|
93
93
|
// 获取用户数据
|
|
94
94
|
export async function getUserInfo() {
|
|
95
|
-
return authToken.
|
|
95
|
+
return authToken.isLoggedIn ? await authToken.getSession() : null;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
// 退出登录(同步操作)
|