This commit is contained in:
mkm 2024-01-21 17:08:15 +08:00
parent f0e04cf52c
commit 05133d752b

View File

@ -935,7 +935,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
//创建订单
$groupOrder = $storeGroupOrderRepository->create($groupOrder);
$bills = [];
$consumptionDetails=[];
if ($groupOrder['integral'] > 0) {
$user->integral = bcsub($user->integral, $groupOrder['integral'], 0);
app()->make(UserBillRepository::class)->decBill($user['uid'], 'integral', 'deduction', [