|
@@ -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);
|
|
|
}
|
|
|
}
|