修改自动推广的相关任务
This commit is contained in:
@@ -298,7 +298,7 @@ class ExpertFinder extends Base
|
|||||||
*/
|
*/
|
||||||
public function dailyFetchAll()
|
public function dailyFetchAll()
|
||||||
{
|
{
|
||||||
$perPage = max(10, intval($this->request->param('per_page', 200)));
|
$perPage = max(10, intval($this->request->param('per_page', 50)));
|
||||||
$source = $this->request->param('source', 'pubmed');
|
$source = $this->request->param('source', 'pubmed');
|
||||||
$minYear = intval($this->request->param('min_year', date('Y') - 3));
|
$minYear = intval($this->request->param('min_year', date('Y') - 3));
|
||||||
|
|
||||||
|
|||||||
@@ -661,9 +661,9 @@ class PromotionService
|
|||||||
$data = ['task_id' => $taskId];
|
$data = ['task_id' => $taskId];
|
||||||
|
|
||||||
if ($delay > 0) {
|
if ($delay > 0) {
|
||||||
Queue::later($delay, $jobClass, $data, 'promotion');
|
Queue::later($delay, $jobClass, $data, 'PromotionSend');
|
||||||
} else {
|
} else {
|
||||||
Queue::push($jobClass, $data, 'promotion');
|
Queue::push($jobClass, $data, 'PromotionSend');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user