|
@@ -678,7 +678,7 @@ class AccountService
|
|
|
* @return CoachLocation 位置信息
|
|
|
* @throws \Illuminate\Http\Exceptions\HttpResponseException 当位置信息不存在时抛出404异常
|
|
|
*/
|
|
|
- private function getLocationByType(CoachUser $coach, int $type): array
|
|
|
+ private function getLocationByType(CoachUser $coach, int $type): CoachLocation
|
|
|
{
|
|
|
// 获取指定类型的位置记录
|
|
|
$location = $coach->locations()
|