浏览代码

加分默认处理

sandm 2 年之前
父节点
当前提交
47191f7cd7
共有 1 个文件被更改,包括 3 次插入2 次删除
  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'] = [
                     $user_info['special'] = [
                         'point_apply'   =>  (string)$special['point_apply'],
                         'point_apply'   =>  (string)$special['point_apply'],
-                        'condition'     =>  $special['condition'] ?? "退伍军人加分",
+                        'condition'     =>  $special['condition'],
                         'material'      =>  $material
                         'material'      =>  $material
                     ];
                     ];
                 }
                 }
@@ -834,8 +834,8 @@ class IndexController extends WebBaseController
                                 }
                                 }
                             }
                             }
                             $special['material'] = json_encode($special['material']);
                             $special['material'] = json_encode($special['material']);
-
                         }else{
                         }else{
+                            $special['condition'] = '';
                             $special['material'] = json_encode([]);
                             $special['material'] = json_encode([]);
                         }
                         }
                         $hasRecord = RecruitAppointExpandSpecial::where('recruit_appoint_id',$appoint_info->id)->first();
                         $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']));
             $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);
             $data['health_code'] = json_encode($health_code);