From b1285db2ae8d8fa568e383bf13822c487349584c Mon Sep 17 00:00:00 2001 From: "675061370@qq.com" Date: Wed, 10 Apr 2024 21:04:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E5=AD=98=E8=B6=85=E6=97=B6=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ app/admin/controller/Source.php | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 06a5c1a..0bf7435 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,12 @@ 后台地址:https://你的域名/qfadmin 账号密码:admin 123456 +## 常见问题 + +1、全部转存执行1分钟~5分钟后中断问题,修改超时限制 +该操作用时很长,请设置最大值86400 +宝塔设置教程 https://www.kancloud.cn/loveouu/bthelp/1541867 + ## 后台管理截图 1、一键转存他人链接:就是将别人的分享链接转为你自己的 diff --git a/app/admin/controller/Source.php b/app/admin/controller/Source.php index a61860a..27ead6e 100644 --- a/app/admin/controller/Source.php +++ b/app/admin/controller/Source.php @@ -320,7 +320,7 @@ class Source extends QfShop if ($error) { return $error; } - ini_set('max_execution_time', -1); + @set_time_limit(999999); //分页转存 $page_no = 1; $dataList = ''; @@ -335,7 +335,6 @@ class Source extends QfShop $res = json_decode($res, true); if($res['code'] !== 200){ - ini_set('max_execution_time', 300); return jerr($res['message']); } $dataList = $res['data']; @@ -395,7 +394,6 @@ class Source extends QfShop } $this->SourceLogModel->editLog($logId,$dataList['total_result'],'','',3); - ini_set('max_execution_time', 300); return jok('已提交任务,稍后查看结果',$dataList); }