curl_setopt($ci, CURLOPT_HTTPHEADER, $headers);
我们的 $headers 一般会这么写
//错误示范 二维数组 $headers = [ "Content-Type" => "application/json", "X-Requested-With" => "XMLHttpRequest", ]; //正确写法 $headers = [ "Content-Type:application/json", "X-Requested-With:XMLHttpRequest", ];