File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export interface FollowerWithTime {
19
19
export class JikeUser < M extends boolean = boolean > {
20
20
#client: JikeClient
21
21
#username?: string
22
- # profile?: Users . Profile < M >
22
+ profile ?: Users . Profile < M >
23
23
24
24
constructor (
25
25
client : JikeClient ,
@@ -28,7 +28,7 @@ export class JikeUser<M extends boolean = boolean> {
28
28
) {
29
29
this . #client = client
30
30
this . #username = username
31
- this . # profile = profile
31
+ this . profile = profile
32
32
}
33
33
34
34
/**
@@ -62,14 +62,14 @@ export class JikeUser<M extends boolean = boolean> {
62
62
* @param ignoreCache 不使用缓存
63
63
*/
64
64
async queryProfile ( ignoreCache = false ) {
65
- if ( ! ignoreCache && this . # profile) return this . # profile
65
+ if ( ! ignoreCache && this . profile ) return this . profile
66
66
67
67
const result = await this . #client. apiClient . users . profile ( this . #username)
68
68
if ( ! isSuccess ( result ) ) throwRequestFailureError ( result , '查询用户信息' )
69
- this . # profile = result . data
70
- this . #username = this . # profile. user . username
69
+ this . profile = result . data
70
+ this . #username = this . profile . user . username
71
71
72
- return this . # profile
72
+ return this . profile
73
73
}
74
74
75
75
/**
You can’t perform that action at this time.
0 commit comments