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