From b177b83134b915019a7ec99d0f84a716ad3b612c Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Mon, 31 Aug 2020 10:15:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/PaymentController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Controller/PaymentController.php b/app/Controller/PaymentController.php index af5cf92..b1e4b96 100644 --- a/app/Controller/PaymentController.php +++ b/app/Controller/PaymentController.php @@ -52,14 +52,13 @@ class PaymentController extends BaseController //判断是否有购买多个特价商品 $result = $this->purchaseLimitService->PurchaseLimit($orderGoods); if(!$result){ - Db::rollBack(); $this->log->event(LogLabel::ORDER_LOG, ['msg'=> '支付失败,同一订单不能存在多个特价商品','global_order_id' => $orderMain->global_order_id]); return $this->result(ErrorCode::PAY_FAILURE, $data,'同一订单不能存在多个特价商品'); } $payMoney = bcmul(floatval($orderMain->money), 100, 0); if (env('APP_ENV') != 'prod') { - $payMoney = 0.01; + $payMoney = 1; } $result = $app->order->unify([