chore: change sms to use sms panel of danak

This commit is contained in:
mahyargdz
2025-02-14 19:20:51 +03:30
parent de5be9e236
commit fba95066ac
2 changed files with 80 additions and 52 deletions
+6 -6
View File
@@ -98,13 +98,13 @@ function sendConfirmationSMS(userId) {
user.mobileConfirmationKey = mobileKey
await user.save()
const smsMsg = [
'این شماره در وبسایت آسان سرویس جهت ارائه خدمات گارانتی ثبت گردیده.',
' کد تایید شماره همراه: ',
mobileKey
]
// const smsMsg = [
// 'این شماره در وبسایت آسان سرویس جهت ارائه خدمات گارانتی ثبت گردیده.',
// ' کد تایید شماره همراه: ',
// mobileKey
// ]
await SMS([user.mobile_number], smsMsg.join(''))
await SMS(user.mobile_number, mobileKey)
resolve()
} catch (err) {