推广 热搜: page  小红  红书  考试  数据  论文  数据分析  关键词  哪些  搜索 

天心api:微信/QQ 防红 接口

   日期:2024-12-16     移动:https://sicmodule.kub2b.com/mobile/quote/6123.html
area style="">## 前言 大家好,本人PHP小白,热爱写api 接口 如有bug或者更好的建议可以留言给我 ## 一、声明

天心api:微信/QQ 防红 接口

### 技术 天心 ### 技术 武渟 ## 二、api是什么? API就是操作系统留给应用程序的一个调用接口,应用程序通过调用操作系统的 API 而使操作系统去执行应用程序的命令。 ## 三、发送请求 #### 请求方式 http://s520z.cn/api/fh.php #### 请求方式 GET #### 请求参数 ### url 这里输入域名 ### type 参数json 不传则输出五条链接 #### 返回格式 JSON #### 返回示例 { "dwz_url": "http://wifiauth.polito.it/2pJKfM", "msg": "ok", "result": 1 } ## 四、实列代码 ```php <?php //$str='d3d3LmpiNTEubmV0IOiEmuacrOS5i+Wutg=='; //定义字符串 //echo base64_decode($str); //输出解码后的内容 $url = $_GET["url"]; $type = $_GET["type"]; $ba=base64_encode($url); // 输出编码后的内容 $fh1=file_get_contents("https://www.fanghong.net/cbfh.php?cb=1&sturl=99&longurl=$ba"); $fh2=file_get_contents("https://www.fanghong.net/cbfh.php?cb=1&sturl=6&longurl=$ba"); $fh3=file_get_contents("https://www.fanghong.net/cbfh.php?cb=1&sturl=1&longurl=$ba"); $fh4=file_get_contents("http://wuting.xyz/api/fh.php?lj=$url&type=json"); if ($type == "json") { echo $fh1; return; } $json_string=$fh1; $obj1=json_decode($json_string); $nm1 = $obj1->dwz_url; $json_string=$fh2; $obj2=json_decode($json_string); $nm2 = $obj2->dwz_url; $json_string=$fh3; $obj3=json_decode($json_string); $nm3 = $obj3->dwz_url; $json_string=$fh4; $obj4=json_decode($json_string); $nm4 = $obj4->url_1; $json_string=$fh4; $obj5=json_decode($json_string); $nm5 = $obj5->url_2; $json_string=$fh1; $obj1=json_decode($json_string); $bl = $obj1->result; if ($nm1 == "0") { echo"请检查域名后重试。"; }else if ($bl == "1") { echo "原链接".$url." "; echo "1.".$nm1." "; echo "2.".$nm2." "; echo "3.".$nm3." "; echo "4.".$nm4." "; echo "5.".$nm5." "; } ?> ``` ## 五、总结 有的域名红了就很烦,不用担心,本代码解决你的烦恼。 QQ或者微信打开跳转浏览器
本文地址:https://sicmodule.kub2b.com/quote/6123.html     企库往 https://sicmodule.kub2b.com/ , 查看更多

特别提示:本信息由相关用户自行提供,真实性未证实,仅供参考。请谨慎采用,风险自负。


0相关评论
相关最新动态
推荐最新动态
点击排行
网站首页  |  关于我们  |  联系方式  |  使用协议  |  版权隐私  |  网站地图  |  排名推广  |  广告服务  |  积分换礼  |  网站留言  |  RSS订阅  |  违规举报  |  鄂ICP备2020018471号