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([