From b665c5679d47b449f9f8a34c0230cf7bac29c986 Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 4 Oct 2019 13:49:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8C=B9=E9=85=8D=E4=BC=A0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=97=B6,=E5=8E=9F=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=90=AB=E6=9C=89=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/models/paypal_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webht/third_party/paypal/models/paypal_model.php b/webht/third_party/paypal/models/paypal_model.php index 24f1d2e2..1219ee99 100644 --- a/webht/third_party/paypal/models/paypal_model.php +++ b/webht/third_party/paypal/models/paypal_model.php @@ -29,7 +29,7 @@ class Paypal_model extends CI_Model { if (empty($result) && ($ordertype == 'T')) { $sql = "SELECT TOP 2 1 as order_type, COLI_SN,COLI_ID,COLI_GRI_SN,OPI_SN,OPI_Email,OPI_FirstName,OPI_Name,COLI_WebCode,COLI_State $fieldsql from ConfirmLineInfo LEFT JOIN OperatorInfo ON COLI_OPI_ID=OPI_SN - where COLI_ID like '%$COLI_ID' + where RTRIM(COLI_ID) like '%$COLI_ID' order by CHARINDEX('$COLI_ID', COLI_ID) "; $query = $this->HT->query($sql); $result = $query->result();