fix sms bug for sending link

This commit is contained in:
2025-10-05 17:38:51 +03:30
parent 024b8cfaa9
commit 76013946bd

View File

@@ -336,21 +336,20 @@ public class SmsService : ISmsService
var guidStr=institutionId.ToString();
var firstPart = guidStr.Substring(0, 15);
var secondPart = guidStr.Substring(15);
var verificationSendResult =await SmsIr.VerifySendAsync(number, 527519, new VerifySendParameter[]
var verificationSendResult =await SmsIr.VerifySendAsync(number, 527519, new VerifySendParameter[]
{
new("#FULLNAME#", fullName),
new("#CODE1#",firstPart),
new("#CODE2#",secondPart)
new("FULLNAME", fullName),
new("CODE1",firstPart),
new("CODE2",secondPart)
});
return verificationSendResult.Status == 0;
}
public async Task<bool> SendInstitutionVerificationCode(string number, string code)
{
var verificationSendResult =await SmsIr.VerifySendAsync(number, 965348, new VerifySendParameter[]
{
new("#VERIFYCODE#", code)
new("VERIFYCODE", code)
});
return verificationSendResult.Status == 0;
}