PHP随机获取未被微信屏蔽的域名(微信域名检测)
用户名和KEY请到www.weixin139.com获取
<?php $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']; 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); if($data){ curl_close($ch); return $data; }else { $error = curl_errno($ch); curl_close($ch); return false; } }
以上所述是小编给大家介绍的PHP随机获取未被微信屏蔽的域名(微信域名检测),希望对大家有所帮助,如果大家有任何疑问欢迎给我留言,小编会及时回复大家的!
相关推荐
Develop 2020-06-11
AderStep 2020-11-09
zrtlin 2020-11-09
localhost0 2020-11-12
jlccwss 2020-09-11
82550294 2020-09-01
windle 2020-08-15
yserver 2020-08-15
windzoone 2020-08-06
dahege 2020-08-01
hxf0 2020-07-10
dahege 2020-06-22
章鱼之家 2020-06-14
niutingbaby 2020-06-14
ljlxyf 2020-06-14
tencentopen 2020-06-12
tianchaoshangguo 2020-06-08