new feature on sms and some bugs fixed
This commit is contained in:
@@ -419,7 +419,9 @@ class WalletController extends Controller
|
||||
}
|
||||
}
|
||||
User::where('send_sms', 1)->get()->each(function ($admin) use ($message) {
|
||||
$this->Send($admin->mobile, $message . ' ' . now()->format('H:i:s'));
|
||||
if (self::isSmsNotifEnabled('sms_notif_withdraw_admin')) {
|
||||
$this->Send($admin->mobile, $message . ' ' . now()->format('H:i:s'));
|
||||
}
|
||||
});
|
||||
|
||||
return response()->json($Withdraw);
|
||||
@@ -583,10 +585,12 @@ class WalletController extends Controller
|
||||
$otp = rand(1000, 9999);
|
||||
$customer->token_sms = $otp;
|
||||
$customer->save();
|
||||
$this->Send(
|
||||
$customer->mobile,
|
||||
'رمز عبور یکبار مصرف شما جهت برداشت پول از اپلیکیشن ' . $this->Config('name_fa') . ' می باشد: ' . $otp
|
||||
);
|
||||
if (self::isSmsNotifEnabled('sms_notif_withdraw_otp')) {
|
||||
$this->Send(
|
||||
$customer->mobile,
|
||||
'رمز عبور یکبار مصرف شما جهت برداشت پول از اپلیکیشن ' . $this->Config('name_fa') . ' می باشد: ' . $otp
|
||||
);
|
||||
}
|
||||
return response()->json(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user