Skip to content

Commit 5ba9f04

Browse files
ASLantASLant
ASLant
authored and
ASLant
committed
Push
1 parent 16cfda5 commit 5ba9f04

9 files changed

+284
-2676
lines changed

.gitignore

-131
This file was deleted.

README.md

+42-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,45 @@
1-
<meta name="referrer" content="no-referrer" />
1+
# lanzou API
22

3-
### 做一个简约实用的学习笔记!
4-
#### 此界面仅每次刷新可以看到
5-
#### 左侧为目录列表
6-
#### 资源获取请移步 `ASLant/Windows 资源.md`
3+
#### 介绍
4+
蓝奏云盘 直链解析API
5+
#### 支持的功能
6+
- 检测文件是否被取消
77

8-
![bbc58c3d998d4f389fdae649334873f7.jpg](https://image.baidu.com/search/down?url=https://tvax3.sinaimg.cn/large/006TZ18hly1hcl4l5sh8vj32yo1o0qv6.jpg)
8+
- 带密码的文件分享链接但不支持分享的文件夹
99

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

SQL命令速查.md

-34
This file was deleted.

domain.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://www.lanzouy.com

index.html

-128
This file was deleted.

index.php

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
?>

0 commit comments

Comments
 (0)