diff --git a/webht/third_party/pay/controllers/PaymentService.php b/webht/third_party/pay/controllers/PaymentService.php index 10e9cea0..76800b78 100644 --- a/webht/third_party/pay/controllers/PaymentService.php +++ b/webht/third_party/pay/controllers/PaymentService.php @@ -445,21 +445,22 @@ log_message('error','send_notify begin ----'); ->SetCellValue('J'.$rowCount, $row['payment_date']); $rowCount++; } - $filename = "refund_imported_" . date('Y-m-d_H_i_s'); + $time_set = date('Y-m-d_H_i_s') + $filename = "refund_imported_" . $time_set; $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); $objWriter->save(FCPATH . "download_statement/refund/" . $filename . ".xls"); if (file_exists(FCPATH . "download_statement/refund/" . $filename . ".xls")) { // 保存成功:更新标记,邮件 foreach ($all_list as $ka => $va) { - // $this->account_model->update_send_fiance($va['note_sn'], $va['payment_type']); + $this->account_model->update_send_fiance($va['note_sn'], $va['payment_type']); } $fromName = 'refund imported'; $fromEmail = ''; - $toName = 'lyt'; - $toEmail = 'lyt@hainatravel.com'; + $toName = 'fgy'; + $toEmail = 'fgy@hainatravel.com'; $subject = $filename; - $body = "https://www.mycht.cn/download_statement/refund/" . $filename . ".xls"; - $M_AddTime = date('Y-m-d_H_i_s'); + $body = "导入账单后有退款, 已汇总到文件.
文件生成日期:" date("Y-m-d H:i") ".
下载链接: https://www.mycht.cn/download_statement/refund/" . $filename . ".xls"; + $M_AddTime = $time_set; $M_State = 0; $this->account_model->save_automail($fromName, $fromEmail, $toName, $toEmail, $subject, $body, 0, $M_State, $M_AddTime, 'refund imported', 'refund imported'); }