作者 lyh
@@ -137,7 +137,7 @@ class ProjectAssociationServices extends BaseService @@ -137,7 +137,7 @@ class ProjectAssociationServices extends BaseService
137 $apiUrl = ProjectAssociation::getApplicationApiUrl($type); 137 $apiUrl = ProjectAssociation::getApplicationApiUrl($type);
138 $url = env('AICC_URL') . $apiUrl; 138 $url = env('AICC_URL') . $apiUrl;
139 $result = curlGet($url); 139 $result = curlGet($url);
140 - if ($result['data']) { 140 + if (!empty($result['data'])) {
141 redis_set($redis_key, json_encode($result), 60); 141 redis_set($redis_key, json_encode($result), 60);
142 } 142 }
143 } else { 143 } else {