From bfa6649d5e51306a53fa38c3b91ec1faa7b2b202 Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 13 Jan 2020 15:06:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20PayPal=E9=80=80=E6=AC=BE=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E6=94=B6=E4=BB=B6=E4=BA=BA=E6=94=B9=E4=B8=BAPayPal?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/controllers/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 61f8cb46..5eb58be6 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -1127,12 +1127,12 @@ class Index extends CI_Controller { $M_State = 0; $this->Paypal_model->save_automail($fromName, $fromEmail, $toName, $toEmail, $subject, $body, $M_RelatedInfo, $M_State, $M_AddTime, 'paypal note'); // 通知客人, 客人邮箱 - $customer_detail = $this->Paypal_model->get_customer_detail($advisor_info->COLI_SN, $orderid_info->ordertype); + // $customer_detail = $this->Paypal_model->get_customer_detail($advisor_info->COLI_SN, $orderid_info->ordertype); $c_fromName = $advisor_detail->fullname ? $advisor_detail->fullname : $opi_firstname; $opi_email_list = explode(";", $advisor_detail->email); // 解析外联的邮件 $c_fromEmail = isset($opi_email_list[0]) ? trim($opi_email_list[0]) : $opi_email; - $c_toName = $customer_detail->fullname; - $c_toEmail = $customer_detail->email; + $c_toName = $item->pn_payer; // $customer_detail->fullname; + $c_toEmail = $item->pn_payer_email ; // $customer_detail->email; $c_subject = $item->pn_mc_currency . " " . str_replace('-', '', $item->pn_mc_gross) . " Refunded to your account, booking number " . $item->pn_invoice; $c_body = $this->load->view('refund_buyer', $item, true); $c_M_RelatedInfo = $item->pn_sn;