From f5e94f959c757bf2f79b5689296c45bcd6f183ac Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Wed, 6 Dec 2023 19:58:54 +0800 Subject: [PATCH] feat: fix first number missing bug in AmazonSNSClient.SendMessage --- aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws.go b/aws.go index 4801768..cbf5792 100644 --- a/aws.go +++ b/aws.go @@ -64,7 +64,7 @@ func (a *AmazonSNSClient) SendMessage(param map[string]string, targetPhoneNumber } } - for i := 1; i < len(targetPhoneNumber); i++ { + for i := 0; i < len(targetPhoneNumber); i++ { _, err := a.svc.Publish(&sns.PublishInput{ Message: &a.template, PhoneNumber: &targetPhoneNumber[i],