diff --git a/webht/third_party/pay/controllers/iPayLinksService.php b/webht/third_party/pay/controllers/iPayLinksService.php index 9a36a765..861be2e4 100644 --- a/webht/third_party/pay/controllers/iPayLinksService.php +++ b/webht/third_party/pay/controllers/iPayLinksService.php @@ -448,9 +448,9 @@ class IPayLinksService extends CI_Controller } //添加邮件发送记录 - //给外联发送通知邮件 $fromName = 'iPayLinks'; $fromEmail = ''; + // 1.给外联发送通知邮件 $toName = !empty($opi_firstname) ? $opi_firstname : ''; $toEmail = !empty($opi_email) ? $opi_email : ''; $subject = $orderid_info->orderid . '_' . $orderid_info->ordertype . ' / ' . $item->IPL_orderAmount . $item->IPL_currencyCode . ' / ' . $fromName; @@ -459,7 +459,17 @@ class IPayLinksService extends CI_Controller $M_AddTime = $item->IPL_completeTime; $M_State = 0; $this->IPayLinks_model->save_automail($fromName, $fromEmail, $toName, $toEmail, $subject, $body, $M_RelatedInfo, $M_State, $M_AddTime, 'iPayLinks note'); - //添加邮件发送记录 end + // 2.给客人发邮件,通知账单 + $toName2 = !empty($item->IPL_payerName) ? $item->IPL_payerName : ''; + $toEmail2 = !empty($item->IPL_payerEmail) ? $item->IPL_payerEmail : ''; + // Zac170919039_T(订单号) / 996.00USD / iPayLinks + $subject2 = $orderid_info->orderid . '_' . $orderid_info->ordertype . ' / ' . $item->IPL_orderAmount . $item->IPL_currencyCode . ' / ' . $fromName; + $body2 = $this->load->view('receipt_buyer', $item, true); + $M_RelatedInfo2 = $item->IPL_sn; + $M_AddTime2 = $item->IPL_completeTime; + $M_State2 = 0; + $this->IPayLinks_model->save_automail($fromName, $fromEmail, $toName2, $toEmail2, $subject2, $body2, $M_RelatedInfo2, $M_State2, $M_AddTime2, 'iPayLinks note'); + // ---- 添加邮件发送记录 end $this->Note_model->update_send($item->IPL_dealId, 'send'); $int++; @@ -934,4 +944,5 @@ class IPayLinksService extends CI_Controller { redirect('https://www.chinahighlights.com'); } + } diff --git a/webht/third_party/pay/views/receipt_buyer.php b/webht/third_party/pay/views/receipt_buyer.php new file mode 100644 index 00000000..305fc5ad --- /dev/null +++ b/webht/third_party/pay/views/receipt_buyer.php @@ -0,0 +1,91 @@ + +
+ +
+
+ Hello ,
+ + You made a payment of + + + +
+
+
|