1) { $headList[$value[0]] = $value[1]; } } curl_close($curl); $resp_res = array(); $resp_res["signature"] = trim($headList["signature"]); $resp_res["responseData"] = $body; return $resp_res; } else { $error = curl_errno($curl); curl_close($curl); throw new Exception("curl出错,错误码:$error"); } } }