new feature on sms and some bugs fixed
This commit is contained in:
@@ -163,7 +163,9 @@ class RequestsController extends Controller
|
||||
" ریال کرد. با تشکر، $companyName";
|
||||
}
|
||||
User::where('send_sms', 1)->get()->each(function ($admin) use ($message, $data, $transactionType, $companyName) {
|
||||
$this->send($admin->mobile, $message);
|
||||
if (self::isSmsNotifEnabled('sms_notif_fund_withdraw_admin')) {
|
||||
$this->send($admin->mobile, $message);
|
||||
}
|
||||
});
|
||||
// User::whereNotNull('telegram')->get()->each(function ($admin) use ($message, $data, $transactionType, $companyName) {
|
||||
// $this->SendTelegram($admin->telegram, $message);
|
||||
@@ -214,8 +216,9 @@ class RequestsController extends Controller
|
||||
// "\nمبلغ کل: " . number_format($data['total_price']) . "\n\nموجودی طلایی: {$wallet->gold}\n" .
|
||||
// "مانده ریالی: " . number_format($wallet->cash) . "\n" . $this->Config('app_url');
|
||||
|
||||
// ارسال SMS به مشتری
|
||||
$this->send($customer->mobile, $customerMessage);
|
||||
if (self::isSmsNotifEnabled('sms_notif_fund_withdraw_customer')) {
|
||||
$this->send($customer->mobile, $customerMessage);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user