diff --git a/webht/third_party/pay/controllers/PaymentService.php b/webht/third_party/pay/controllers/PaymentService.php index 044c985a..f75ef175 100644 --- a/webht/third_party/pay/controllers/PaymentService.php +++ b/webht/third_party/pay/controllers/PaymentService.php @@ -217,6 +217,10 @@ class PaymentService extends CI_Controller { $where = " OPN_SN=" . $item->OPN_SN; $this->note_model->update_note($where, $update_note_column); } + if ($send_email===false) { + $this->note_model->update_send($item->OPN_SN, $item->OPN_transactionId, 'closed'); + continue; // 这里不跳出, 退款后续需要检测是否发送财务 + } // 邮件外联 $opi_email = !empty($advisor_info->OPI_Email) ? $advisor_info->OPI_Email : ''; $opi_firstname = !empty($advisor_info->OPI_FirstName) ? $advisor_info->OPI_FirstName : !empty($advisor_info->OPI_Name) ? $advisor_info->OPI_Name : '';