From a1d29649467c6b41d41f94945b67bf6fc87a76f2 Mon Sep 17 00:00:00 2001 From: lyt Date: Wed, 12 Jun 2019 10:09:50 +0800 Subject: [PATCH] =?UTF-8?q?paypal=E9=80=80=E6=AC=BE=E7=9A=84=E5=A4=96?= =?UTF-8?q?=E8=81=94=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/controllers/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 46f2510f..0dcb0f40 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -1106,9 +1106,9 @@ class Index extends CI_Controller { $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); - $c_fromName = $advisor_detail->fullname; + $c_fromName = $advisor_detail->fullname ? $advisor_detail->fullname : $opi_firstname; $opi_email_list = explode(";", $advisor_detail->email); // 解析外联的邮件 - $c_fromEmail = trim($opi_email_list[0]); + $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_subject = $item->pn_mc_currency . " " . str_replace('-', '', $item->pn_mc_gross) . " Refunded to your account, booking number " . $item->pn_invoice;