From 3a013997341178c358ff404e71694f5a4c3eafb6 Mon Sep 17 00:00:00 2001 From: weigang Date: Wed, 9 Sep 2020 17:12:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/PaymentService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/PaymentService.php b/app/Service/v3/Implementations/PaymentService.php index b1cfcab..5da66e7 100644 --- a/app/Service/v3/Implementations/PaymentService.php +++ b/app/Service/v3/Implementations/PaymentService.php @@ -6,6 +6,7 @@ use App\Commons\Log; use App\Constants\v3\ErrorCode; use App\Constants\v3\LogLabel; use App\Constants\v3\OrderState; +use App\Constants\v3\OrderType; use App\Exception\ErrorCodeException; use App\Model\v3\OrderMain; use App\Model\v3\User; @@ -50,7 +51,7 @@ class PaymentService implements PaymentServiceInterface } $payMoney = bcmul((string)$orderMain->money, 100, 0); - if (env('APP_ENV') != 'prod') { + if (env('APP_ENV') != 'prod' && $orderMain->type == OrderType::ONLINE) { $payMoney = 1; }