Commit 04d16e95 authored by hj's avatar hj

更新提交

parent 213d3c50
......@@ -671,7 +671,7 @@ class InvoiceService
}
if($cusInfo){
$cusInfo = current($cusInfo);
$this->mailService->sendMailToHtml($title, $cusInfo['cus_invoice_email'],$message);
$this->mailService->sendMailToHtml($invoiceParams['invoice_platform'], $title, $cusInfo['cus_invoice_email'],$message);
$this->apiService->storePlatformDataEntries('invoice_sended_mail_list',array_merge($sended,[$invoiceParams['invoice_real_number']]));
}
......
......@@ -61,9 +61,10 @@ class MailService{
});
}
public function sendMailToHtml($title, $toUser,$html)
public function sendMailToHtml($type, $title, $toUser, $html)
{
$this->mailer->html($html,function($mail) use ($toUser, $title){
$this->setFromType($type)->initSendService();
Mail::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