NASER fix send to tahesab for withdraw
This commit is contained in:
@@ -178,14 +178,14 @@ class WalletController extends Controller
|
|||||||
$userMobile = $customer->mobile; // User's mobile number
|
$userMobile = $customer->mobile; // User's mobile number
|
||||||
$userName = $customer->name; // User's name
|
$userName = $customer->name; // User's name
|
||||||
$withdrawAmount = $data['value']; // amount
|
$withdrawAmount = $data['value']; // amount
|
||||||
|
if($this->Config('send_to_tahesab') == "true") {
|
||||||
$tahesab = new TahesabController();
|
$tahesab = new TahesabController();
|
||||||
$tahesab->wallet([
|
$tahesab->wallet([
|
||||||
"customer_id" => auth('customer')->id(),
|
"customer_id" => auth('customer')->id(),
|
||||||
"value" => $data['value'],
|
"value" => $data['value'],
|
||||||
"direction" => 1,
|
"direction" => 1,
|
||||||
]);
|
]);
|
||||||
|
}
|
||||||
$companyName = $this->Config('name_fa'); // Company name from configuration
|
$companyName = $this->Config('name_fa'); // Company name from configuration
|
||||||
$message = "کاربر $userName با شماره موبایل $userMobile درخواست برداشت مبلغ " . number_format($withdrawAmount) . " ریال را دارد. با تشکر، $companyName";
|
$message = "کاربر $userName با شماره موبایل $userMobile درخواست برداشت مبلغ " . number_format($withdrawAmount) . " ریال را دارد. با تشکر، $companyName";
|
||||||
if (isset($request->otp)) {
|
if (isset($request->otp)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user