NASER fix send to tahesab for withdraw

This commit is contained in:
gholak tala
2026-04-08 06:24:46 +00:00
parent edbbca8ae4
commit 87f9ad4aec
@@ -178,14 +178,14 @@ class WalletController extends Controller
$userMobile = $customer->mobile; // User's mobile number
$userName = $customer->name; // User's name
$withdrawAmount = $data['value']; // amount
$tahesab = new TahesabController();
$tahesab->wallet([
"customer_id" => auth('customer')->id(),
"value" => $data['value'],
"direction" => 1,
]);
if($this->Config('send_to_tahesab') == "true") {
$tahesab = new TahesabController();
$tahesab->wallet([
"customer_id" => auth('customer')->id(),
"value" => $data['value'],
"direction" => 1,
]);
}
$companyName = $this->Config('name_fa'); // Company name from configuration
$message = "کاربر $userName با شماره موبایل $userMobile درخواست برداشت مبلغ " . number_format($withdrawAmount) . " ریال را دارد. با تشکر، $companyName";
if (isset($request->otp)) {