From a1ebec60e47a8b4c8a6867f01d8e2fe2bb97434c Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 31 Jul 2025 15:09:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=AF=E4=BB=98=E5=AE=9D=E9=80=80?= =?UTF-8?q?=E6=AC=BE:=20=E5=8F=91=E5=AE=A2=E4=BA=BA=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/pay/controllers/AlipayTradeService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webht/third_party/pay/controllers/AlipayTradeService.php b/webht/third_party/pay/controllers/AlipayTradeService.php index 371c1a84..95684f3d 100644 --- a/webht/third_party/pay/controllers/AlipayTradeService.php +++ b/webht/third_party/pay/controllers/AlipayTradeService.php @@ -782,7 +782,7 @@ class AlipayTradeService extends CI_Controller $opi_email_list = explode(";", $advisor_detail->email); // 解析外联的邮件 $c_fromEmail = trim($opi_email_list[0]); $c_toName = $customer_detail->fullname; - $c_toEmail = $customer_detail->email; + $c_toEmail = isset($customer_detail->email) ? $customer_detail->email : ''; $c_subject = $currencyCode . " " . str_replace('-', '', $item->ALI_orderAmount) . " Refunded to your account, booking number " . $item->ALI_orderId; // 修改一些字段名, 为了和iPaylinks等用同一个邮件模板 $item->payer = $customer_detail->fullname; @@ -816,7 +816,7 @@ class AlipayTradeService extends CI_Controller // 更新是否需要发送财务 $refund_finance_day = 20; $now_day = date('d'); - $late_entry_date_set = $now_day<$refund_finance_day ? date('Y-m-01', strtotime("-1 month")) : date('Y-m-01'); + $late_entry_date_set = $now_day < $refund_finance_day ? date('Y-m-01', strtotime("-1 month")) : date('Y-m-01'); if ($this->payment_model->if_finance_done($advisor_info->COLI_GRI_SN, $late_entry_date_set) === true) { $this->Alipay_note_model->update_send($item->ALI_dealId, 'send-to-finance'); }