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];