From 747b768ccbb7c35ab9f904e673fe189b4173f88b Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 2 Jul 2024 13:36:24 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20PayPal=E6=94=B6=E6=AC=BE=E5=A4=84?= =?UTF-8?q?=E7=90=86:=20=E5=A4=9A=E6=9D=A1=E8=AE=A2=E5=8D=95=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/models/paypal_model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webht/third_party/paypal/models/paypal_model.php b/webht/third_party/paypal/models/paypal_model.php index ed21cc47..c10d5c4d 100644 --- a/webht/third_party/paypal/models/paypal_model.php +++ b/webht/third_party/paypal/models/paypal_model.php @@ -77,7 +77,11 @@ class Paypal_model extends CI_Model { //print_r($result[0]); //die(); if (count($result) > 1 && $handpick===false) { - $result = array(); + // $result = array(); + $result = array_filter($result, function($item) use ($COLI_ID) { + return $item->COLI_ID === $COLI_ID; + }); + $result = $result[0]; } else { $result = $result[0]; }