域名通过 ATS 检测,
支持 TLS1.2,
已经在后台设置了域名合法性,
但是真机非调试状态下依然出现错误提示:Fail url not in domain list
__
__
用的是新浪 sae, 绑定域名( https://www.mingxie.co )采用 rename.
__
__
__
__
一、域名通过 ATS 检测,支持 TLS1.2,
__
__
__
__
二、已经在后台设置了域名合法性
__
__
__
__
三、但是真机非调试状态下依然出现错误提示:Fail url not in domain list
补充用到一个PHP提交函数
function api_notice_increment($url, $data){
$ch = curl_init();
$header = “Accept-Charset: utf-8”;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_USERAGENT, ‘Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)’);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$tmpInfo = curl_exec($ch);
// var_dump($tmpInfo);
// exit;
if (curl_errno($ch)) {
return false;
}else{
// var_dump($tmpInfo);
return $tmpInfo;
}
}