|
|
|
@ -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');
|
|
|
|
|
}
|
|
|
|
|