From 497f76ac3afbf4df55d98760c451b8c7c0b83832 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 2 Jan 2020 17:35:30 +0800 Subject: [PATCH] Update functions.php --- functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 23b510c..e3557de 100644 --- a/functions.php +++ b/functions.php @@ -223,8 +223,7 @@ function get_refresh_token() } document.cookie=\'language=; path=/\'; '; - //setConfig([ 'refresh_token' => $tmptoken ]); - setConfig($ret); + setConfig([ 'refresh_token' => $tmptoken ]); $str .= ' '; return message($str, $constStr['WaitJumpIndex'][$constStr['language']]); @@ -460,7 +459,7 @@ function get_thumbnails_url($path = '/') if (substr($url,-1)=='/') $url=substr($url,0,-1); } $url .= ':/thumbnails/0/medium'; - $files = json_decode(curl_request($url, false, ['Authorization' => 'Bearer ' . $_SERVER['access_token']]), true); + $files = json_decode(curl_request($url, false, ['Authorization' => 'Bearer ' . $_SERVER['access_token']])['body'], true); if (isset($files['url'])) return output($files['url']); return output('', 404); }