|
@@ -455,7 +455,7 @@ class AccountService
|
|
|
* 1. 获取指定类型的位置记录
|
|
|
* 2. 返回格式化的位置数据
|
|
|
*
|
|
|
- * @param MemberUser $user 认证用户
|
|
|
+ * @param User $user 认证用户
|
|
|
* @param int $type 位置类型 (1:当前位置 2:常用位置)
|
|
|
* @return array 位置信息,包含:
|
|
|
* - province: string 省份
|
|
@@ -467,7 +467,7 @@ class AccountService
|
|
|
* - latitude: float 纬度
|
|
|
* - updated_at: string 更新时间
|
|
|
*/
|
|
|
- public function getLocation(MemberUser $user, int $type): array
|
|
|
+ public function getLocation($user, int $type): array
|
|
|
{
|
|
|
// 获取指定类型的位置记录
|
|
|
$location = $this->getLocationByType($user->coach, $type);
|