diff --git a/src/services/userService.ts b/src/services/userService.ts index 171bc94..20f6d63 100644 --- a/src/services/userService.ts +++ b/src/services/userService.ts @@ -18,7 +18,7 @@ interface UserDetailData { country: string; province: string; city: string; - district:string; + district: string; language: string; phone: string; is_subscribed: string; @@ -51,7 +51,7 @@ export interface UserInfoType { country: string province: string city: string - district:string + district: string language: string phone: string is_subscribed: string @@ -111,6 +111,11 @@ interface BackendGameData { venue_type: string; surface_type: string; }; + participants: { + user: { + avatar_url: string; + }; + }[]; } // 用户服务类 @@ -166,7 +171,8 @@ export class UserService { image_list: images, court_type: game.court_type || '未知', matchType: game.play_type || '不限', - shinei: game.court_type || '未知' + shinei: game.court_type || '未知', + participants: game.participants || [], }; }); } @@ -230,7 +236,7 @@ export class UserService { }, personal_profile: userData.personal_profile || '', - location: userData.city + userData.district|| '', + location: userData.city + userData.district || '', occupation: userData.occupation || '', ntrp_level: '', phone: userData.phone || '', @@ -373,8 +379,8 @@ export class UserService { latitude: 'latitude', longitude: 'longitude', province: 'province', - country:"country", - city:"city", + country: "country", + city: "city", personal_profile: 'personal_profile', occupation: 'occupation', ntrp_level: 'ntrp_level'