commit | author | age
|
2207d6
|
1 |
<?php |
W |
2 |
/** |
|
3 |
* Created by PhpStorm |
|
4 |
* User: 风哀伤 |
|
5 |
* Date: 2021/1/14 |
|
6 |
* Time: 11:26 上午 |
|
7 |
* @copyright: ©2020 浙江禾匠信息科技 |
|
8 |
* @link: http://www.zjhejiang.com |
|
9 |
*/ |
|
10 |
|
|
11 |
namespace app\jobs; |
|
12 |
|
|
13 |
|
|
14 |
use app\core\mail\SendMail; |
|
15 |
use app\models\Mall; |
|
16 |
use yii\queue\JobInterface; |
|
17 |
|
|
18 |
class MailJob extends BaseJob implements JobInterface |
|
19 |
{ |
|
20 |
/** |
|
21 |
* @var SendMail $class |
|
22 |
*/ |
|
23 |
public $class; |
|
24 |
|
|
25 |
public $view; |
|
26 |
public $params; |
|
27 |
|
|
28 |
public function execute($queue) |
|
29 |
{ |
|
30 |
$this->setRequest(); |
|
31 |
$this->class->job($this->view, $this->params); |
|
32 |
} |
|
33 |
} |