|
|
|
@ -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(); |
|
|
|
|
|
|
|
|