#942 | |
#943 | if (curl_errno($ch)) { |
#944 | $error_number = curl_errno($ch); |
#945 | $error_message = curl_error($ch); |
#946 | error_log("cURL错误 {$error_number}: {$error_message} 品种 {$symbol}({$code})"); |
#947 | $retrySymbols[$code] = $symbol; |
#948 | } else { |
#949 | try { |
#950 | // 处理API返回的JavaScript变量格式 |
#951 | $response = preg_replace('/^var quote_json = /', '', $response); |