From 194accefd882ee74569977a959f545ed37416b6f Mon Sep 17 00:00:00 2001 From: wood911010 Date: Tue, 13 Jan 2026 09:41:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=B0=86=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E5=8F=91=E9=80=81=E6=AC=A1=E6=95=B0=E4=BB=8E5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=B025=EF=BC=8C=E4=BB=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=9B=B4=E9=AB=98=E7=9A=84=E7=9F=AD=E4=BF=A1=E5=8F=91?= =?UTF-8?q?=E9=80=81=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/pkg/utils/sms.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/pkg/utils/sms.go b/backend/pkg/utils/sms.go index 080673b..562bef4 100644 --- a/backend/pkg/utils/sms.go +++ b/backend/pkg/utils/sms.go @@ -40,7 +40,7 @@ const ( SMSLimitKeyPrefix = "sms:limit" SMSCodeExpireTime = 5 * time.Minute SMSLimitTimeWindow = time.Hour - SMSLimitMaxCount = 5 + SMSLimitMaxCount = 25 ) // SMSService 短信服务接口 @@ -148,7 +148,7 @@ func (s *smsService) SendVerificationCode(ctx context.Context, phone, phoneCount fullPhone = "+86" + phone } - // TODO: 发送短信 - 需要阿里云SMS SDK + // 送短信 - 需要阿里云SMS SDK err := s.sendSMS(fullPhone, templateCode, code) if err != nil { fmt.Printf("Failed to send SMS to %s: %v", fullPhone, err)