Skip to content

Commit f1d5750

Browse files
authored
更新接口
更新接口为:openapi.alipan.com
1 parent a6f3628 commit f1d5750

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aliyundrive.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function is_SSL(){
1616
return FALSE;
1717
}
1818

19-
$api_url='https://openapi.aliyundrive.com/oauth/access_token';
19+
$api_url='https://openapi.alipan.com/oauth/access_token';
2020
$grant_type='authorization_code';
2121
$code=$_GET['code'];
2222
//获取回调地址
@@ -27,7 +27,7 @@ function is_SSL(){
2727
}
2828
$redirect_uri=urlEncode($hts);
2929
//重定向到阿里云盘登陆页面
30-
$url='https://openapi.aliyundrive.com/oauth/authorize?client_id='.$client_id.'&redirect_uri='.$redirect_uri.'&scope=user:base,file:all:read,file:all:write&state=&response_type=code';
30+
$url='https://openapi.alipan.com/oauth/authorize?client_id='.$client_id.'&redirect_uri='.$redirect_uri.'&scope=user:base,file:all:read,file:all:write&state=&response_type=code';
3131
//https://openapi.aliyundrive.com/oauth/authorize?client_id=55091393987b4cc090b090ee17e85e0a&redirect_uri=oob&scope=
3232
// redirect($url);
3333
$post_data=array();
@@ -113,4 +113,4 @@ function is_SSL(){
113113
</div>
114114
</div>
115115
</body>
116-
</html>
116+
</html>

0 commit comments

Comments
 (0)