From 653ff6de874e84a1b0f2fcf3bcadec081b1bd60f Mon Sep 17 00:00:00 2001 From: lyt Date: Thu, 28 Sep 2017 10:31:17 +0800 Subject: [PATCH] =?UTF-8?q?Ipaylinks=E6=B7=BB=E5=8A=A0=E5=AE=A2=E4=BA=BA?= =?UTF-8?q?=E4=BB=98=E6=AC=BE=E5=90=8E=EF=BC=8C=20=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8F=91=E9=80=81=E4=BB=98=E6=AC=BE=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E7=9A=84=E9=82=AE=E4=BB=B6=E9=80=9A=E7=9F=A5=E7=BB=99?= =?UTF-8?q?=E5=AE=A2=E4=BA=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pay/controllers/iPayLinksService.php | 15 ++- webht/third_party/pay/views/receipt_buyer.php | 91 +++++++++++++++++++ 2 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 webht/third_party/pay/views/receipt_buyer.php 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 @@ + + + +
+ + + + + +
+ + + + + + + +
+ PayPal logo + + +
Transaction ID: + + +
+
+ Hello , +
+ You made a payment of + + +
+ + + + + + + +
Thanks for using Ipaylinks. Your payment to China Highlights International Travel Service Co., Ltd is sucessully.
+It may take a few moments for this transaction to appear in our account.
+ + +
+
+
+
+ + + + + + + +
+ Buyer +
+ +
+ +
+
+
+ + + + + + + + + + + + + + + +
Description  Amount
+ +
+
+ + + + +
+
+
+ +