Quellcode durchsuchen

加分默认处理

sandm vor 2 Jahren
Ursprung
Commit
47191f7cd7
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      app/Http/Controllers/Web/Recruit/IndexController.php

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

@@ -426,7 +426,7 @@ class IndexController extends WebBaseController
                     }
                     $user_info['special'] = [
                         'point_apply'   =>  (string)$special['point_apply'],
-                        'condition'     =>  $special['condition'] ?? "退伍军人加分",
+                        'condition'     =>  $special['condition'],
                         'material'      =>  $material
                     ];
                 }
@@ -834,8 +834,8 @@ class IndexController extends WebBaseController
                                 }
                             }
                             $special['material'] = json_encode($special['material']);
-
                         }else{
+                            $special['condition'] = '';
                             $special['material'] = json_encode([]);
                         }
                         $hasRecord = RecruitAppointExpandSpecial::where('recruit_appoint_id',$appoint_info->id)->first();
@@ -1921,6 +1921,7 @@ class IndexController extends WebBaseController
 
             $this->baiduService->health_code(file_get_contents(base_path() . "/public" . $health_code[0]['response']['path']));
 
+            dd($health_code);
 
             $data['health_code'] = json_encode($health_code);