From cff5d5a6d5bebafb8aa278aeb0b7ed699e202d39 Mon Sep 17 00:00:00 2001 From: lyt Date: Tue, 28 Nov 2017 09:18:30 +0800 Subject: [PATCH] =?UTF-8?q?paypal=20=E5=95=86=E5=8A=A1=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E7=9A=84=E4=BB=98=E6=AC=BE=E5=A2=9E=E5=8A=A0=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=B8=BB=E8=A1=A8=E7=9A=84=E4=BB=98=E6=AC=BE=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/controllers/index.php | 2 ++ webht/third_party/paypal/models/paypal_model.php | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 70ac529b..9ca58990 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -791,6 +791,8 @@ class Index extends CI_Controller { } else { $ssje = $this->Paypal_model->get_ssje($item->pn_mc_gross, '15010', mb_strtoupper($item->pn_mc_currency)); $this->Paypal_model->add_account_info($GAI_COLI_SN, $advisor_info->COLI_ID, $item->pn_mc_gross, $item->pn_payment_date, mb_strtoupper($item->pn_mc_currency), $ssje, $item->pn_payment_date, $item->pn_payment_date, $item->pn_payment_date, '', $item->pn_payer_email, $item->pn_txn_id, $ht_memo); + // 更新订单主表付款方式,防止没访问thankyou-train.asp + $this->Paypal_model->update_paymanner($GAI_COLI_SN, '15010'); } } //更新还没有填的客邮和交易号de收款记录(传统订单) diff --git a/webht/third_party/paypal/models/paypal_model.php b/webht/third_party/paypal/models/paypal_model.php index 3105d078..af3f95b5 100644 --- a/webht/third_party/paypal/models/paypal_model.php +++ b/webht/third_party/paypal/models/paypal_model.php @@ -510,4 +510,15 @@ class Paypal_model extends CI_Model { } return 0; } + /*! + * 更新订单主表付款方式,防止没访问thankyou-train.asp + * @author LYT + * @date 2017-11-27 + */ + public function update_paymanner($COLI_SN, $paymanner = '15010') + { + $sql = "UPDATE BIZ_ConfirmLineInfo SET COLI_PayManner = ? WHERE COLI_SN=? "; + $query = $this->HT->query($sql, array($paymanner, $COLI_SN)); + return $query; + } }