sandm 4 жил өмнө
parent
commit
4034179e6e

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

@@ -1382,7 +1382,7 @@ class IndexController extends WebBaseController
             return $this->showMessage('抱歉,您无需补登!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
         }
 
-        $info = RecruitSupplement::where('appoint_id',$appoint_info->id)->first()->toArray();
+        $info = RecruitSupplement::where('appoint_id',$appoint_info->id)->first();
         if(!$info){
             $info = [
                 'appoint_id' => $appoint_info->id,
@@ -1394,6 +1394,7 @@ class IndexController extends WebBaseController
                 'status' => -1
             ];
         }else{
+            $info = $info->toArray();
             if(json_decode($info['identification'])){
                 $identification = json_decode($info['identification'],true);
                 foreach ($identification as $k => $v){