Pārlūkot izejas kodu

隐藏的不显示

zmw 3 mēneši atpakaļ
vecāks
revīzija
930cedc01b

+ 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'));
         }