feat: can send Aliyun test SMS now (#1651)

This commit is contained in:
Yaodong Yu
2023-03-13 17:48:58 +08:00
committed by GitHub
parent 2cca1c9136
commit 90f8eba02d
2 changed files with 5 additions and 7 deletions

View File

@ -44,7 +44,7 @@ func SendSms(provider *Provider, content string, phoneNumbers ...string) error {
if provider.Type == sender.Aliyun {
for i, number := range phoneNumbers {
phoneNumbers[i] = strings.TrimPrefix(number, "+")
phoneNumbers[i] = strings.TrimPrefix(number, "+86")
}
}