From cbf08908666f74575d4a4f4f676801235742c02f Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 3 Jan 2020 15:49:10 +0800 Subject: [PATCH] Update functions.php --- functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 722b012..f8a9d0f 100644 --- a/functions.php +++ b/functions.php @@ -224,6 +224,9 @@ function get_refresh_token() document.cookie=\'language=; path=/\'; '; setConfig([ 'refresh_token' => $tmptoken ]); + $cache = null; + $cache = new \Doctrine\Common\Cache\FilesystemCache(sys_get_temp_dir(), '.Onedrive'); + $cache->save('access_token', $ret['access_token'], $ret['expires_in'] - 60); $str .= ' '; return message($str, $constStr['WaitJumpIndex'][$constStr['language']]); @@ -303,7 +306,7 @@ Can not write config to file.
} $html .= '
-
+
language:
'; foreach ($constStr['languages'] as $key1 => $value1) { $html .= '