fix some bugs 3
This commit is contained in:
@@ -38,7 +38,10 @@ class OrderController extends Controller
|
||||
|
||||
$lastPrice = (float) (Price::latest('created_at')->value('price') ?? 0);
|
||||
|
||||
$goldAmount = app(WalletBalanceService::class)->effectiveMainWalletGold((int) $customerId);
|
||||
$goldAmount = app(WalletBalanceService::class)->effectiveMainWalletGold(
|
||||
(int) $customerId,
|
||||
(int) ($customer->type ?? 2)
|
||||
);
|
||||
|
||||
$orders = Order::query()
|
||||
->where('customer_id', $customerId)
|
||||
|
||||
Reference in New Issue
Block a user