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 @@ -73,11 +73,11 @@ export const queryProfile = async ({
73
73
profile : ApiResponses . Users . Profile
74
74
) : profile is ApiResponses . Users . MyProfile => profile . user . id === user . userId
75
75
76
- if ( isTable ) {
77
- showTable ( )
78
- } else {
79
- showText ( )
80
- }
76
+ const formatFollowedCount = ( count : number ) =>
77
+ colors . bold ( count === 100000 ? colors . red ( '99999+' ) : ` ${ count } ` )
78
+
79
+ if ( isTable ) showTable ( )
80
+ else showText ( )
81
81
82
82
function showText ( ) {
83
83
const texts : string [ ] [ ] = [
@@ -95,7 +95,7 @@ export const queryProfile = async ({
95
95
] ,
96
96
[
97
97
`${ colors . bold ( `${ result . user . statsCount . followingCount } ` ) } 关注` ,
98
- `${ colors . bold ( ` ${ result . user . statsCount . followedCount } ` ) } 被关注` ,
98
+ `${ formatFollowedCount ( result . user . statsCount . followedCount ) } 被关注` ,
99
99
`${ colors . bold ( `${ result . user . statsCount . respectedCount } ` ) } 夸夸` ,
100
100
] ,
101
101
[ ] ,
You can’t perform that action at this time.
0 commit comments