From b75773205ccae8dcd453d37e1bb605f2fe826dad Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 27 Dec 2023 12:05:23 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20wxpay:=20=E5=BD=95=E5=85=A5=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E6=97=B6=E9=97=B4;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/pay/controllers/PaymentService.php | 2 +- .../pay/models/Online_payment_account_model.php | 12 ++++++------ .../pay/models/Online_payment_note_model.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/webht/third_party/pay/controllers/PaymentService.php b/webht/third_party/pay/controllers/PaymentService.php index 9525dc2f..02949cef 100644 --- a/webht/third_party/pay/controllers/PaymentService.php +++ b/webht/third_party/pay/controllers/PaymentService.php @@ -232,7 +232,7 @@ class PaymentService extends CI_Controller { ) { $this->account_model->update_biz_coli_state($COLI_SN, 13); $this->account_model->insert_biz_order_log($COLI_SN, 'BS13'); - } else { + } else if (false!==$is_refund) { $this->account_model->insert_biz_order_log($COLI_SN, 'Refunded'); } $this->account_model->add_account_info( diff --git a/webht/third_party/pay/models/Online_payment_account_model.php b/webht/third_party/pay/models/Online_payment_account_model.php index aab304f5..e9a06bc8 100644 --- a/webht/third_party/pay/models/Online_payment_account_model.php +++ b/webht/third_party/pay/models/Online_payment_account_model.php @@ -273,8 +273,8 @@ class Online_payment_account_model extends CI_Model { ,GAI_AccreditNo ,GAI_Memo ,GAI_State - ,DeleteFlag - ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0)"; + ,DeleteFlag,LastEditTime + ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE())"; $query = $this->HT->query($sql, array($GAI_AccreditNo, $GAI_COLI_SN, $GAI_COLI_ID, $payment_method, $GAI_SQJE, $GAI_SQDate, $GAI_SQJECurrency, $GAI_SSJE, $GAI_SSDate, $GAI_AccountDate, $GAI_SubmitDate, $GAI_CusName, $GAI_CusEmail, $GAI_AccreditNo, $GAI_Memo)); $insertid = $this->HT->last_id('BIZ_GroupAccountInfo'); return $query; @@ -305,8 +305,8 @@ class Online_payment_account_model extends CI_Model { ,GAI_AccreditNo ,GAI_Memo ,GAI_State - ,DeleteFlag - ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0)"; + ,DeleteFlag,LastEditTime + ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE())"; $query = $this->HT->query($sql, array($GAI_COLI_SN, $GAI_SQJE, $payment_method, $GAI_COLI_SN, $GAI_COLI_ID, $payment_method, $GAI_SQJE, $GAI_SQDate, $GAI_SQJECurrency, $GAI_SSJE, $GAI_SSDate, $GAI_AccountDate, $GAI_SubmitDate, $GAI_CusName, $GAI_CusEmail, $GAI_AccreditNo, $GAI_Memo)); $insertid = $this->HT->last_id('BIZ_GroupAccountInfo'); return $query; @@ -337,8 +337,8 @@ class Online_payment_account_model extends CI_Model { ,GAI_AccreditNo ,GAI_Memo ,GAI_State - ,DeleteFlag - ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,0,0)"; + ,DeleteFlag,LastEditTime + ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,GETDATE())"; $query = $this->HT->query($sql, array($GAI_AccreditNo, $GAI_COLI_SN, $payment_method, $GAI_SQJE, $GAI_SQDate, $GAI_SQJECurrency, $GAI_SSJE, $GAI_SSDate, $GAI_AccountDate, $GAI_SubmitDate, $GAI_CusName, $GAI_CusEmail, $GAI_AccreditNo, $GAI_Memo)); $insertid = $this->HT->last_id('GroupAccountInfo'); return $insertid; diff --git a/webht/third_party/pay/models/Online_payment_note_model.php b/webht/third_party/pay/models/Online_payment_note_model.php index b5482767..eea3e3c5 100644 --- a/webht/third_party/pay/models/Online_payment_note_model.php +++ b/webht/third_party/pay/models/Online_payment_note_model.php @@ -156,7 +156,7 @@ class Online_payment_note_model extends CI_Model { $this->transactionId ? $sql.=$this->transactionId : false; $this->orderby ? $sql.=$this->orderby : false; - // log_message('error', PHP_EOL . $sql); + log_message('error', PHP_EOL . $sql); $query = $this->info->query($sql); $result = $query->result();