From c205a804cd950c1c237488b4b4f1b412545ea937 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 30 May 2024 15:39:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=AF=E4=BB=98=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E8=BF=94=E5=9B=9E=E4=BF=A1=E6=81=AF=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/order/RetailOrderController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/api/controller/order/RetailOrderController.php b/app/api/controller/order/RetailOrderController.php index 21107ff..e5dc44f 100644 --- a/app/api/controller/order/RetailOrderController.php +++ b/app/api/controller/order/RetailOrderController.php @@ -181,7 +181,7 @@ class RetailOrderController extends BaseApiController Redis::send('send-code-pay', ['number' => $order['number']]); return $this->success('用户支付中'); } - return $this->success('支付成功', ['out_trade_no'=>$result['out_trade_no'],'pay_type'=>PayEnum::WECHAT_PAY_BARCODE,'transaction_id'=>$result['transaction_id']],1,1); + return $this->success('支付成功', ['out_trade_no'=>$result['out_trade_no'],'pay_type'=>PayEnum::WECHAT_PAY_BARCODE,'transaction_id'=>$result['transaction_id']]); break; case PayEnum::ALIPAY_BARCODE: //支付宝条码支付 @@ -190,10 +190,10 @@ class RetailOrderController extends BaseApiController return $this->fail(PaymentLogic::getError(), $params); } if ($result['msg'] !== 'Success') { - return $this->success('用户支付中',[],1,1); + return $this->success('用户支付中'); } $result['create_time'] = $order['create_time']; - return $this->success('支付成功', ['out_trade_no'=>$result['out_trade_no'],'pay_type'=>PayEnum::ALIPAY_BARCODE,'transaction_id'=>$result['trade_no']],1,1); + return $this->success('支付成功', ['out_trade_no'=>$result['out_trade_no'],'pay_type'=>PayEnum::ALIPAY_BARCODE,'transaction_id'=>$result['trade_no']]); break; default: return $this->fail('支付方式错误'); @@ -273,7 +273,7 @@ class RetailOrderController extends BaseApiController Redis::send('send-code-pay', ['number' => $order['number']]); return $this->success('用户支付中'); } - return $this->success('支付成功', ['out_trade_no'=>$result['out_trade_no'],'pay_type'=>PayEnum::WECHAT_PAY_BARCODE,'transaction_id'=>$result['transaction_id']],1,1); + return $this->success('支付成功', ['out_trade_no'=>$result['out_trade_no'],'pay_type'=>PayEnum::WECHAT_PAY_BARCODE,'transaction_id'=>$result['transaction_id']]); break; case PayEnum::ALIPAY_BARCODE: //支付宝条码支付 @@ -284,7 +284,7 @@ class RetailOrderController extends BaseApiController if ($result['msg'] !== 'Success') { return $this->success('用户支付中'); } - return $this->success('支付成功', ['out_trade_no'=>$result['out_trade_no'],'pay_type'=>PayEnum::ALIPAY_BARCODE,'transaction_id'=>$result['trade_no']],1,1); + return $this->success('支付成功', ['out_trade_no'=>$result['out_trade_no'],'pay_type'=>PayEnum::ALIPAY_BARCODE,'transaction_id'=>$result['trade_no']]); break; default: return $this->fail('支付方式错误');