/** POST请求(raw数据请求,支持HEADER参数配置)
* @param $url
* @param $datas 支持数组或字符串
* # $CURLOPT_HTTPHEADER = [ 'X-AjaxPro-Method:ShowList', 'Content-Type: application/json; charset=utf-8', 'Content-Length: ' . strlen($data_string)];
*/
function curlPostRaw($url, $datas, $HTTPHEADER = ['Content-Type' => 'application/json; charset=utf-8','X-safety-source'=>'openApiSdk']) {
if(is_array($datas)){
if(is_array($HTTPHEADER) && $HTTPHEADER['Content-Type']=='application/json; charset=utf-8'){
$data_string = jsonEncode($datas);
}else{
$temps = [];
foreach ($datas as $key => $value) {
$temps[] &