fix amount 4

This commit is contained in:
2026-06-09 11:17:07 +03:30
parent ca7177d21b
commit a8dd0071e2
3 changed files with 49 additions and 7 deletions
@@ -336,7 +336,7 @@ class SingleOrderController extends Controller
'expire_at' => now(),
'active' => true,
'order_id' => $order->id,
'title' => self::productBuyTitle($data['product']['title'] ?? '')
'title' => self::mainMetalSellTitle(),
], 12, false, true);
$wallet_interface_product = new WalletInterface(auth('customer')->id(), auth('customer')->user()->type, null, $data["product_id"]);
$wallet_interface_product->wallet->gold = intval($wallet_interface_product->wallet->gold);
@@ -453,7 +453,7 @@ class SingleOrderController extends Controller
'expire_at' => now(),
'active' => true,
'order_id' => $order->id,
'title' => self::productSellTitle($data['product']['title'] ?? '')
'title' => self::mainMetalBuyTitle(),
], 12, true, false);
$wallet_interface_product->wallet->gold = intval($wallet_interface_product->wallet->gold);
$wallet_interface_product->wallet->save();