From de784c32c3c32b1d4c001ac34860756ad628c0b9 Mon Sep 17 00:00:00 2001 From: weigang Date: Mon, 17 Aug 2020 22:30:16 +0800 Subject: [PATCH] Fix cash --- 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 9fc92ae..b2c6fba 100644 --- a/app/Controller/PaymentController.php +++ b/app/Controller/PaymentController.php @@ -33,8 +33,7 @@ class PaymentController extends BaseController $result = $app->order->unify([ 'body' => '懒族生活 - 外卖下单', 'out_trade_no' => $orderMain->global_order_id, - // 'total_fee' => bcmul(floatval($orderMain->money), 100, 0), - 'total_fee' => 1, + 'total_fee' => bcmul(floatval($orderMain->money), 100, 0), 'notify_url' => config('site_host') . '/wechat/notify/wxminionline', 'trade_type' => 'JSAPI', 'openid' => $data['openid'],