From 8d639aed288b8d054f771494adf780b8ecd8d6c4 Mon Sep 17 00:00:00 2001 From: Ultrame <1019265060@qq.com> Date: Mon, 15 Sep 2025 21:50:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=90=83=E5=B1=80=E5=8F=82?= =?UTF-8?q?=E4=B8=8E=E8=80=85=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/userService.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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'