Showing
1 changed file
with
0 additions
and
7 deletions
@@ -194,13 +194,6 @@ class Yohobuy | @@ -194,13 +194,6 @@ class Yohobuy | ||
194 | } | 194 | } |
195 | $result = curl_exec($ch); | 195 | $result = curl_exec($ch); |
196 | 196 | ||
197 | - $httpCode = curl_getinfo($ch,CURLINFO_HTTP_CODE); | ||
198 | - //如果分流执行失败,则走原来的逻辑 | ||
199 | - if (USE_INTER_FACE_SHUNT && $httpCode !== 200) { | ||
200 | - curl_close($ch); | ||
201 | - return self::_get($urlBack, $data, $cache, $returnJson, $timeout, $userAgent, $useGzip); | ||
202 | - } | ||
203 | - | ||
204 | if (!$returnJson && !empty($result)) { | 197 | if (!$returnJson && !empty($result)) { |
205 | $result = json_decode($result, true); | 198 | $result = json_decode($result, true); |
206 | } | 199 | } |
-
Please register or login to post a comment