未验证 提交 6230773e 编写于 作者: Q qkqpttgf 提交者: GitHub

fix: 500 error in php8

上级 bc66f43b
...@@ -132,7 +132,7 @@ class Googledrive { ...@@ -132,7 +132,7 @@ class Googledrive {
if (in_array(splitlast($item['name'],'.')[1], $exts['txt'])) { if (in_array(splitlast($item['name'],'.')[1], $exts['txt'])) {
if (!(isset($item['content'])&&$item['content']['stat']==200)) { if (!(isset($item['content'])&&$item['content']['stat']==200)) {
//if (!isset($item['downUrl'])) { //if (!isset($item['downUrl'])) {
$res = curl('GET', $item['webContentLink'], '', '', 1); $res = curl('GET', $item['webContentLink'], '', [], 1);
$weblink = $res['returnhead']['Location']; $weblink = $res['returnhead']['Location'];
//if ($weblink!==null) $item['downUrl'] = $weblink; //if ($weblink!==null) $item['downUrl'] = $weblink;
//else error_log1('Cant get link:' . json_encode($res, JSON_PRETTY_PRINT)); //else error_log1('Cant get link:' . json_encode($res, JSON_PRETTY_PRINT));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册