调试信用购订单结算

This commit is contained in:
luofei 2023-07-08 15:13:32 +08:00
parent ecb7348376
commit 1496f283b3
2 changed files with 1 additions and 4 deletions

View File

@ -2477,7 +2477,7 @@ class StoreOrderRepository extends BaseRepository
}
$groupOrder->interest->interest = $interest;
if ($result === true) {
app()->make(MerchantRepository::class)->computedLockMoney($groupOrder->order);
app()->make(MerchantRepository::class)->computedLockMoney($groupOrder->orderList[0]);
$groupOrder->interest->status = StoreOrderInterest::STATUS_SETTLED;
$groupOrder->interest->settle_time = date('Y-m-d H:i:s');

View File

@ -16,9 +16,6 @@ class OrderTake
public function handle($event)
{
$order = $event['order'];
if ($order['merchant']['interest_rate'] <= 0) {
return true;
}
/** @var StoreOrderInterestRepository $storeOrderInterestRepository */
$storeOrderInterestRepository = app()->make(StoreOrderInterestRepository::class);
$merchantId = Merchant::where('uid', $order['uid'])->value('mer_id');