From 2ffcda34ee827e74ba6af98d4daaad6abc06d9cb Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 24 Sep 2025 13:49:52 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=94=AF=E4=BB=98=E5=AE=9D=E9=80=80?= =?UTF-8?q?=E6=AC=BE:=20=E6=B2=A1=E6=9C=89=E4=BA=A4=E6=98=93=E5=8F=B7?= =?UTF-8?q?=E7=9A=84=E8=B7=B3=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/pay/controllers/AlipayTradeService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webht/third_party/pay/controllers/AlipayTradeService.php b/webht/third_party/pay/controllers/AlipayTradeService.php index c0d80b7f..48689c59 100644 --- a/webht/third_party/pay/controllers/AlipayTradeService.php +++ b/webht/third_party/pay/controllers/AlipayTradeService.php @@ -1435,9 +1435,9 @@ class AlipayTradeService extends CI_Controller 'OPN_accountMethod' => ['=', 15015], ]); } - if (empty($originRows)) { + if (empty($originRows) || count($originRows) > 1) { $res['errcode'] = '1'; - $res['errmsg'] = '没有找到该笔交易'; + $res['errmsg'] = empty($originRows) ? '没有找到该笔交易' : '无法匹配交易'; return $this->output->set_content_type('application/json')->set_output(json_encode($res)); // test } $originRow = $originRows[0];