From 186f8e2f968fb21ddee3c27e6db2447b67523f94 Mon Sep 17 00:00:00 2001 From: yangrz Date: Tue, 23 Aug 2022 22:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=8D=95=E5=BB=BA=E8=A1=8C=E6=94=AF?= =?UTF-8?q?=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/OrderOnlineService.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/OrderOnlineService.php b/app/Service/v3/Implementations/OrderOnlineService.php index 25dbb70..3357b70 100644 --- a/app/Service/v3/Implementations/OrderOnlineService.php +++ b/app/Service/v3/Implementations/OrderOnlineService.php @@ -24,6 +24,7 @@ use App\Model\v3\ShoppingCart; use App\Model\v3\Store; use App\Model\v3\User; use App\Model\v3\UserAddress; +use App\Service\v3\CcbPaymentService; use App\Service\v3\Interfaces\BadgeServiceInterface; use App\Service\v3\Interfaces\CouponRecServiceInterface; use App\Service\v3\Interfaces\CouponServiceInterface; @@ -473,7 +474,11 @@ class OrderOnlineService implements OrderOnlineServiceInterface $this->badgeService->doByOrder($userId, array_values(array_column($dataChildren, 'store_id')), $orderMain->global_order_id, OrderState::UNPAID); // 支付 - return $this->paymentService->do($globalOrderId, $totalAmount, $userId, config('wechat.notify_url.online')); + //return $this->paymentService->do($globalOrderId, $totalAmount, $userId, config('wechat.notify_url.online')); + + // 建行支付 + $ccb = ApplicationContext::getContainer()->get(CcbPaymentService::class); + return $ccb->createCcbPayment($globalOrderId, $userId); } catch (Exception $e) { Db::rollBack();