From 75f9eed5ceb75acb4d55ad31375ec597a5eb11c0 Mon Sep 17 00:00:00 2001 From: weigang Date: Thu, 13 Aug 2020 09:22:48 +0800 Subject: [PATCH] =?UTF-8?q?mark=EF=BC=9Abcmul=E9=BB=98=E8=AE=A4=E7=9A=84sc?= =?UTF-8?q?ale=E4=B8=8D=E8=B5=B7=E4=BD=9C=E7=94=A8=EF=BC=8C=E5=BE=97?= =?UTF-8?q?=E6=89=8B=E5=86=990?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/PaymentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controller/PaymentController.php b/app/Controller/PaymentController.php index d4189dd..ff5159e 100644 --- a/app/Controller/PaymentController.php +++ b/app/Controller/PaymentController.php @@ -27,13 +27,13 @@ class PaymentController extends BaseController ->first(); if (empty($orderMain)) { - return $this->result(ErrorCode::PAY_FAILURE, ['order_id' => $data['order_id']],'订单不存在或已失效'); + return $this->result(ErrorCode::PAY_FAILURE, $data,'订单不存在或已失效'); } $result = $app->order->unify([ 'body' => '懒族生活 - 外卖下单', 'out_trade_no' => $orderMain->global_order_id, - 'total_fee' => bcmul(floatval($orderMain->money), 100), + 'total_fee' => bcmul(floatval($orderMain->money), 100, 0), 'notify_url' => config('site_host') . '/v1/notify/wxminiOnline', 'trade_type' => 'JSAPI', 'openid' => $data['openid'],