Browse Source

feat:后台-审核实名技师

刘学玺 4 months ago
parent
commit
e48e476154

+ 7 - 11
app/Admin/Controllers/CoachInfoRecordController.php

@@ -124,17 +124,13 @@ class CoachInfoRecordController extends AdminController
             'audit_remark' => 'required|string|max:255',
         ]);
 
-        try {
-            $result = $this->service->audit(
-                $validated['info_record_id'],
-                $validated['info_record_state'],
-                $validated['audit_remark'],
-                Admin::user()->id
-            );
+        $result = $this->service->audit(
+            $validated['info_record_id'],
+            $validated['info_record_state'],
+            $validated['audit_remark'],
+            Admin::user()->id
+        );
 
-            return $this->autoResponse($result);
-        } catch (\Exception $e) {
-            return $this->error($e->getMessage());
-        }
+        return $this->autoResponse($result);
     }
 }

+ 7 - 11
app/Admin/Controllers/CoachRealRecordController.php

@@ -111,17 +111,13 @@ class CoachRealRecordController extends AdminController
             'audit_remark' => 'required|string|max:255',
         ]);
 
-        try {
-            $result = $this->service->audit(
-                $validated['real_auth_record_id'],
-                $validated['real_auth_state'],
-                $validated['audit_remark'],
-                Admin::user()->id
-            );
+        $result = $this->service->audit(
+            $validated['real_auth_record_id'],
+            $validated['real_auth_state'],
+            $validated['audit_remark'],
+            Admin::user()->id
+        );
 
-            return $this->autoResponse($result);
-        } catch (\Exception $e) {
-            return $this->error($e->getMessage());
-        }
+        return $this->autoResponse($result);
     }
 }