Browse Source

修复企业medicalCommunityId为空时, Nhc:: getMedicaComnunityMap()方法在不同php版本可能会报错

sugangqiang 1 year ago
parent
commit
728734596f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/common/api/VerifyApi.php

+ 1 - 1
app/common/api/VerifyApi.php

@@ -70,7 +70,7 @@ class VerifyApi {
             $info["enterpriseBankNetwork"] = $enterprise["bankNetwork"];
             $info["enterpriseBank"] = $enterprise["bank"];
             $info["isGeneral"] = $enterprise["isGeneral"];
-            $info["medicalCommunityName"] = \app\common\api\Nhc::getMedicalCommunityMap()[$enterprise["medicalCommunityId"]];
+            $info["medicalCommunityName"] = $enterprise["medicalCommunityId"] ? \app\common\api\Nhc::getMedicalCommunityMap()[$enterprise["medicalCommunityId"]] : "";
 
             if ($info["talent_type"]) {
                 if ($enterprise["type"] == \app\common\state\CommonConst::ENTERPRISE_WJ) {