Browse Source

更新两码上传

sandm 2 years ago
parent
commit
e9cd512a17
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/Web/Recruit/IndexController.php

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

@@ -1948,7 +1948,7 @@ class IndexController extends WebBaseController
             }
             }
 
 
             $health_result = $this->baiduService->health_code(file_get_contents(base_path() . "/public" . $health_code[0]['response']['path']));
             $health_result = $this->baiduService->health_code(file_get_contents(base_path() . "/public" . $health_code[0]['response']['path']));
-            $health_msg = [];
+            $health_msg = ['健康码自动审核通过'];
             $h_status = 1;
             $h_status = 1;
             $appoint_info->health_audit = 1;
             $appoint_info->health_audit = 1;
             if(!array_key_exists('error_msg',$health_result) && !array_key_exists('error_code',$health_result)){
             if(!array_key_exists('error_msg',$health_result) && !array_key_exists('error_code',$health_result)){
@@ -1978,7 +1978,7 @@ class IndexController extends WebBaseController
                     array_push($health_msg,'健康码错误,识别不到时间!');
                     array_push($health_msg,'健康码错误,识别不到时间!');
                 }
                 }
                 $data['h_status'] = $h_status;
                 $data['h_status'] = $h_status;
-                $data['h_msg'] = $h_status == 1 ? '健康码自动审核通过' : implode(';',$health_msg);
+                $data['h_msg'] = implode(';',$health_msg);
                 $appoint_info->health_audit = $h_status == 1 ? 1 : 4;
                 $appoint_info->health_audit = $h_status == 1 ? 1 : 4;
                 $data['health_code'] = json_encode($health_code);
                 $data['health_code'] = json_encode($health_code);
             }
             }