把几个参数设置下就可以 ,1代表有postCURLOPT_RETURNTRANSFER TRUE to return the transfer as a string of the return value of curl_exec() instead of outputting it out directly.  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);