Browse Source

修复部门超时驳回如果存在re_check_companys会出错array_diff首个参数没有转成array类型

sugangqiang 1 year ago
parent
commit
db997877d0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/job/Talent.php

+ 3 - 2
app/job/Talent.php

@@ -80,7 +80,8 @@ class Talent {
                           $unpass_companyIds = array_diff($companyIds, (array) $pass_companyIds); //排除已经通过的单位
                           } */
                         $pass_companyIds = TalentLogApi::getPassDepts($talent_info["id"]); //已经通过的单位
-                        $companyIds = \app\common\api\VerifyApi::getNewReCheckCompanyIds($talent_info["re_check_companys"], $companyIds, $pass_companyIds);
+                        $re_check_companys = $talent_info["re_check_companys"] ? array_filter(explode(",", $talent_info["re_check_companys"])) : [];
+                        $companyIds = \app\common\api\VerifyApi::getNewReCheckCompanyIds($re_check_companys, $companyIds, $pass_companyIds);
                         $unpass_companyIds = array_diff($companyIds, (array) $pass_companyIds); //排除已经通过的单位
                         if (!$unpass_companyIds) {
                             //没有未审部门
@@ -179,7 +180,7 @@ class Talent {
                     $name = $talentInfo["name"]; //姓名
                     $cardNumber = $talentInfo["card_number"]; //身份证
                     $type = $talentInfo["enterpriseType"]; //企业类型
-                    
+
                     /* 查询是否升级 */
 
                     /* 查询最后一条积分日志 */