|
@@ -120,13 +120,13 @@ class CoachInfoRecordController extends AdminController
|
|
|
{
|
|
|
$validated = $request->validate([
|
|
|
'id' => 'required|integer|exists:coach_info_records,id',
|
|
|
- 'state' => 'required|integer|in:2,3', // 2:通过 3:驳回
|
|
|
+ 'info_record_state' => 'required|integer|in:2,3', // 2:通过 3:驳回
|
|
|
'audit_remark' => 'nullable|string|max:255', // 改为可选
|
|
|
]);
|
|
|
|
|
|
$result = $this->service->audit(
|
|
|
$validated['id'],
|
|
|
- $validated['state'],
|
|
|
+ $validated['info_record_state'],
|
|
|
$validated['audit_remark'] ?? '', // 添加默认值
|
|
|
Admin::user()->id
|
|
|
);
|