Explorar o código

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

sugangqiang hai 1 ano
pai
achega
728734596f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {