【php随机生成数字】PHP随机获取未被微信屏蔽的域名(微信域名检测)

更新时间:2021-07-29    来源:微信    手机版     字体:

【www.bbyears.com--微信】

   代码如下 $url = "https://api.weixin139.com/weixin/domain/auto_check_list?user=xxx&key=xxx&type=1";$con = get_msg($url);$data = json_decode($con,true);$count = count($data)-1;$rand = rand(0,$count);echo $data[$rand]['domain'];word">function get_msg($url){ $ch = curl_init(); curl_setopt($ch,CURLOPT_TIMEOUT,1); curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false); curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false); $data = curl_exec($ch); word">if($data){  curl_close($ch);  return $data; }else {  $error = curl_errno($ch);  curl_close($ch);  return false; }} 

本文来源:http://www.bbyears.com/shoujikaifa/132632.html

热门标签

更多>>

本类排行