From c4fcd55669b99095aaaae85ec664e135ac721dd4 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 17 Jan 2021 19:00:05 +0800 Subject: [PATCH] try to change onedrive to sharepoint --- disk/Onedrive.php | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/disk/Onedrive.php b/disk/Onedrive.php index d34a8db..2339b0f 100644 --- a/disk/Onedrive.php +++ b/disk/Onedrive.php @@ -38,6 +38,11 @@ class Onedrive { //return $tmp; } + public function ext_show_innerenv() + { + return []; + } + public function list_files($path = '/') { global $exts; @@ -382,7 +387,7 @@ class Onedrive { $url = path_format($_SERVER['PHP_SELF'] . '/'); //$this->api_url = splitfirst($_SERVER['api_url'], '/v1.0')[0] . '/v1.0'; - if (isset($_GET['install4'])) { + if (isset($_GET['Finish'])) { if ($this->access_token == '') { $refresh_token = getConfig('refresh_token', $this->disktag); if (!$refresh_token) { @@ -448,7 +453,7 @@ class Onedrive { } } - if (isset($_GET['install3'])) { + if (isset($_GET['SelectDrive'])) { if ($this->access_token == '') { $refresh_token = getConfig('refresh_token', $this->disktag); if (!$refresh_token) { @@ -470,10 +475,10 @@ class Onedrive { error_log1($arr['body']); $sites = json_decode($arr['body'], true)['value']; - $title = 'Select Disk'; + $title = 'Select Driver'; $html = '
-
+
'; if ($sites[0]!='') foreach ($sites as $k => $v) { $html .= ' @@ -540,7 +545,7 @@ class Onedrive { } else { savecache('access_token', $ret['access_token'], $this->disktag, $ret['expires_in'] - 60); $str .= ' - '; + '; return message($str, getconstStr('Wait') . ' 3s', 201); } } @@ -553,7 +558,7 @@ class Onedrive { return message(' ' . getconstStr('JumptoOffice') . ' ';