mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 02:59:10 +08:00
update: add send mass mail queue
This commit is contained in:
parent
ce8b5dde28
commit
ba75d6e993
@ -256,7 +256,8 @@ class UserController extends Controller
|
|||||||
'url' => config('v2board.app_url'),
|
'url' => config('v2board.app_url'),
|
||||||
'content' => $request->input('content')
|
'content' => $request->input('content')
|
||||||
]
|
]
|
||||||
]);
|
],
|
||||||
|
'send_email_mass');
|
||||||
}
|
}
|
||||||
|
|
||||||
return response([
|
return response([
|
||||||
|
@ -21,10 +21,9 @@ class SendEmailJob implements ShouldQueue
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct($params)
|
public function __construct($params, $queue = 'send_email')
|
||||||
{
|
{
|
||||||
$this->delay(now()->addSecond(2));
|
$this->onQueue($queue);
|
||||||
$this->onQueue('send_email');
|
|
||||||
$this->params = $params;
|
$this->params = $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,9 +176,10 @@ return [
|
|||||||
'traffic_fetch',
|
'traffic_fetch',
|
||||||
'server_log',
|
'server_log',
|
||||||
'send_email',
|
'send_email',
|
||||||
|
'send_email_mass',
|
||||||
'send_telegram',
|
'send_telegram',
|
||||||
'stat_server',
|
'stat_server',
|
||||||
'order_handle'
|
'order_handle',
|
||||||
],
|
],
|
||||||
'balance' => 'auto',
|
'balance' => 'auto',
|
||||||
'minProcesses' => 1,
|
'minProcesses' => 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user