File tree 9 files changed +284
-2676
lines changed
9 files changed +284
-2676
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- < meta name = " referrer " content = " no-referrer " />
1
+ # lanzou API
2
2
3
- ### 做一个简约实用的学习笔记!
4
- #### 此界面仅每次刷新可以看到
5
- #### 左侧为目录列表
6
- #### 资源获取请移步 ` ASLant/Windows 资源.md `
3
+ #### 介绍
4
+ 蓝奏云盘 直链解析API
5
+ #### 支持的功能
6
+ - 检测文件是否被取消
7
7
8
- ![ bbc58c3d998d4f389fdae649334873f7.jpg ] ( https://image.baidu.com/search/down?url=https://tvax3.sinaimg.cn/large/006TZ18hly1hcl4l5sh8vj32yo1o0qv6.jpg )
8
+ - 带密码的文件分享链接但不支持分享的文件夹
9
9
10
+ - 生成直链或直接下载
11
+
12
+
13
+ #### 使用说明
14
+
15
+ url:蓝奏云外链链接
16
+
17
+ type:是否直接下载 值:down
18
+
19
+ pwd:外链密码
20
+
21
+ 内部调用方法
22
+
23
+ ``` php
24
+ include('lanzou.clsss.php');
25
+ $lz = new lanzou;
26
+ $res=$lz->getUrl($url,$pwd);
27
+ ```
28
+
29
+ # 使用示例
30
+
31
+ 直接下载:
32
+ 无密码:http://tool.bitefu.net/lanzou/?url=https://www.lanzous.com/xxxx&type=down
33
+
34
+ 有密码:http://tool.bitefu.net/lanzou/?url=https://www.lanzous.com/xxxxx&type=down&pwd=1234
35
+
36
+ 输出直链:
37
+ 无密码:http://tool.bitefu.net/lanzou/?url=https://www.lanzous.com/xxxxx
38
+
39
+ 有密码:http://tool.bitefu.net/lanzou/?url=https://www.lanzous.com/xxxx&pwd=1234
40
+
41
+ #### 短链接
42
+
43
+ 不带密码:http://tool.bitefu.net/lanzou/?d=iXAYR0e10dpe
44
+
45
+ 带密码:http://tool.bitefu.net/lanzou/?d=ic3qfri-52pj
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ https://www.lanzouy.com
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <?php
2
+ header ('Access-Control-Allow-Origin:* ' );error_reporting ("E_ALL " );ini_set ("display_errors " , 1 );
3
+ header ('Content-Type:application/json; charset=utf-8 ' );
4
+ $ d = isset ($ _GET ['d ' ]) ? $ _GET ['d ' ] : "" ;
5
+ $ url = isset ($ _GET ['url ' ]) ? $ _GET ['url ' ] : "" ;
6
+ $ pwd = isset ($ _GET ['pwd ' ]) ? $ _GET ['pwd ' ] : "" ;
7
+ $ type = isset ($ _GET ['type ' ]) ? $ _GET ['type ' ] : "" ;
8
+ include ('lanzou.clsss.php ' );
9
+ if (!empty ($ d ) && empty ($ url )){$ arr = explode ('- ' ,$ d );$ url =$ arr [0 ];$ pwd =$ arr [1 ];$ type ='down ' ;}
10
+ $ lz = new lanzou ;
11
+ if ($ type =='check ' ){
12
+ $ info = $ lz ->checkurl ();
13
+ $ res =array ('status ' =>1 ,'info ' =>$ info );ajaxReturn ($ res );
14
+ }else {
15
+ $ res =$ lz ->getUrl ($ url ,$ pwd );
16
+ if ($ res ['status ' ]==0 )ajaxReturn ($ res );
17
+ switch ($ type ){
18
+ case "down " :
19
+ header ("Location: " .$ res ['info ' ]);die;
20
+ break ;
21
+ default :
22
+ ajaxReturn ($ res );
23
+ break ;
24
+ }
25
+ }
26
+
27
+ function ajaxReturn ($ array ){
28
+ $ content =json_encode ($ array ,JSON_UNESCAPED_UNICODE );
29
+ if (empty ($ _GET ['callback ' ])){
30
+ echo $ content ;exit ;
31
+ }else {
32
+ echo $ _GET ['callback ' ]."( " .$ content .") " ;exit ;
33
+ }
34
+ }
35
+ ?>
You can’t perform that action at this time.
0 commit comments