转存超时问题
This commit is contained in:
@@ -29,6 +29,12 @@
|
|||||||
后台地址:https://你的域名/qfadmin
|
后台地址:https://你的域名/qfadmin
|
||||||
账号密码:admin 123456
|
账号密码:admin 123456
|
||||||
|
|
||||||
|
## 常见问题
|
||||||
|
|
||||||
|
1、全部转存执行1分钟~5分钟后中断问题,修改超时限制
|
||||||
|
该操作用时很长,请设置最大值86400
|
||||||
|
宝塔设置教程 https://www.kancloud.cn/loveouu/bthelp/1541867
|
||||||
|
|
||||||
## 后台管理截图
|
## 后台管理截图
|
||||||
|
|
||||||
1、一键转存他人链接:就是将别人的分享链接转为你自己的
|
1、一键转存他人链接:就是将别人的分享链接转为你自己的
|
||||||
|
|||||||
@@ -320,7 +320,7 @@ class Source extends QfShop
|
|||||||
if ($error) {
|
if ($error) {
|
||||||
return $error;
|
return $error;
|
||||||
}
|
}
|
||||||
ini_set('max_execution_time', -1);
|
@set_time_limit(999999);
|
||||||
//分页转存
|
//分页转存
|
||||||
$page_no = 1;
|
$page_no = 1;
|
||||||
$dataList = '';
|
$dataList = '';
|
||||||
@@ -335,7 +335,6 @@ class Source extends QfShop
|
|||||||
$res = json_decode($res, true);
|
$res = json_decode($res, true);
|
||||||
|
|
||||||
if($res['code'] !== 200){
|
if($res['code'] !== 200){
|
||||||
ini_set('max_execution_time', 300);
|
|
||||||
return jerr($res['message']);
|
return jerr($res['message']);
|
||||||
}
|
}
|
||||||
$dataList = $res['data'];
|
$dataList = $res['data'];
|
||||||
@@ -395,7 +394,6 @@ class Source extends QfShop
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->SourceLogModel->editLog($logId,$dataList['total_result'],'','',3);
|
$this->SourceLogModel->editLog($logId,$dataList['total_result'],'','',3);
|
||||||
ini_set('max_execution_time', 300);
|
|
||||||
return jok('已提交任务,稍后查看结果',$dataList);
|
return jok('已提交任务,稍后查看结果',$dataList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user