Ver Fonte

feat:技师端-获取技师详情

刘学玺 há 4 meses atrás
pai
commit
0d6abe5beb
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      app/Services/Coach/AccountService.php

+ 4 - 0
app/Services/Coach/AccountService.php

@@ -321,6 +321,10 @@ class AccountService
                 'wallet' => $wallet,
             ],
             $baseInfo,
+            [
+                'state' => $coach->state,
+                'state_text' => TechnicianStatus::fromValue($coach->state)?->label(),
+            ],
             [
                 'auth_status' => $authStatus,
                 'location' => $location,