diff --git a/app/Http/Controllers/Site/RequestsController.php b/app/Http/Controllers/Site/RequestsController.php index 413437e..a86dade 100644 --- a/app/Http/Controllers/Site/RequestsController.php +++ b/app/Http/Controllers/Site/RequestsController.php @@ -68,7 +68,11 @@ class RequestsController extends Controller { $customer_id = Customer::where('mobile', $request->mobile)->first()?->id; if($customer_id && $customer_id !== null){ - $wallet = Wallet::select(['owner','gold','cash'])->where('owner',$customer_id)->first(); + $wallet = Wallet::select(['owner','gold','cash']) + ->where('owner', $customer_id) + ->whereNull('fund_id') + ->whereNull('product_id') + ->first(); }else{ throw new UnprocessableEntityHttpException('کاربری با این شماره موبایل یافت نشد.'); }