Parcourir la source

fixed:用户端-申请技师

刘学玺 il y a 3 mois
Parent
commit
5d9d118d0b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      app/Services/Client/UserService.php

+ 3 - 1
app/Services/Client/UserService.php

@@ -507,7 +507,9 @@ class UserService
             }
 
             // 获取最新的申请记录
-            return $coach->info;
+            return $coach->infoRecords()
+                ->latest()
+                ->first();
         } catch (\Exception $e) {
             Log::error('获取技师申请记录失败', [
                 'error' => $e->getMessage(),