Commit 0c83789d authored by hj's avatar hj

更新提交

parent 04d16e95
......@@ -627,7 +627,7 @@ class InvoiceService
'params' => $invoiceResult,
'consumer' => __CLASS__,
'method' => 'sendInvoiceEmail'
],'invoiceEmailPush',20*60);
],'invoiceEmailPush');
return true;
}
}
......
......@@ -8,6 +8,8 @@ use Illuminate\Support\Facades\Mail;
class MailService{
private $type;
public function __construct(Mailer $mailer)
{
$this->mailer = $mailer;
......@@ -64,7 +66,7 @@ class MailService{
public function sendMailToHtml($type, $title, $toUser, $html)
{
$this->setFromType($type)->initSendService();
Mail::html($html,function($mail) use ($toUser, $title){
Mail::mailer('smtp_'.$type)->html($html,function($mail) use ($toUser, $title){
$mail->to($toUser);
$mail->subject($title);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment