wallet fix

This commit is contained in:
2026-06-26 14:27:50 +03:30
parent 44733aabdb
commit 533f5facc1
@@ -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('کاربری با این شماره موبایل یافت نشد.');
}