Improve SMS code

This commit is contained in:
Gucheng Wang
2023-03-03 22:44:22 +08:00
parent aad9201b24
commit ef3d323f63
4 changed files with 19 additions and 13 deletions

View File

@ -198,7 +198,7 @@ func checkQuotaForUser(count int) error {
return nil
}
func checkSmsReceivers(smsForm SmsForm) []string {
func getInvalidSmsReceivers(smsForm SmsForm) []string {
var invalidReceivers []string
for _, receiver := range smsForm.Receivers {
// The receiver phone format: E164 like +8613854673829 +441932567890