From 8e3319b499775229cc409b53d02810eeccfa2c79 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 10 Dec 2023 12:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyAliPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyAliPublic.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/SrcJyAliPublic.js b/SrcJyAliPublic.js index 4c11c36..bd8be0e 100644 --- a/SrcJyAliPublic.js +++ b/SrcJyAliPublic.js @@ -268,7 +268,6 @@ function aliOpenPlayUrl(file_id, sharedata) { } catch (e) { json2 = JSON.parse(request('https://api.xhofe.top/alist/ali_open/code', { body: data2, method: 'POST', timeout: 8000 })); } - log(json2); return json2.access_token || ""; } function fcopy(obj) { @@ -302,7 +301,7 @@ function aliOpenPlayUrl(file_id, sharedata) { } return json.file_id; } catch (e) { - log("#原画##copy转存#>异常>"+e.message); + log("原画copy转存异常>"+e.message); return ""; } }; @@ -335,13 +334,11 @@ function aliOpenPlayUrl(file_id, sharedata) { let drive_id = getMyVar("selectDisk", "1") == "1" ? userinfo.default_drive_id : userinfo.resource_drive_id || userinfo.default_drive_id; let newfile_id; if (sharedata) { - log(sharedata); sharedata.file_id = file_id; sharedata.drive_id = drive_id; sharedata.authorization = authorization; newfile_id = fcopy(sharedata); if (!newfile_id) { - log("copy失败"); return ""; } } @@ -351,7 +348,7 @@ function aliOpenPlayUrl(file_id, sharedata) { let nowtime = Date.now(); let oldtime = parseInt(getMyVar('opentokenChecktime', '0').replace('time', '')); let aliopentoken = getMyVar('aliopentoken'); - if (aliopentoken && nowtime < (oldtime + 1 * 60 * 60 * 1000)) { + if (aliopentoken && nowtime < (oldtime + 2 * 60 * 60 * 1000)) { opentoken = aliopentoken; } else { opentoken = getOpenToken(authorization);