zmw 3 месяцев назад
Родитель
Сommit
930cedc01b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Controllers/Web/Recruit/IndexController.php

+ 1 - 1
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -71,7 +71,7 @@ class IndexController extends WebBaseController
         if (empty($id)) {
             return $this->showMessage('抱歉,请输入指定的招考场次!', route('recruit.index.list'), true, '上一页', '2');
         }
-        $recruit = Recruit::find($id);
+        $recruit = Recruit::where('status',1)->find($id);
         if (empty($recruit)) {
             return redirect(route('/recruit/list'));
         }