This commit is contained in:
Mrx
2026-02-28 12:29:30 +08:00
parent 1e2d5b199a
commit 3942553ab3
3 changed files with 38 additions and 5 deletions

View File

@@ -37,12 +37,12 @@ func NewSendSmsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendSmsLo
func (l *SendSmsLogic) SendSms(req *types.SendSmsReq) error {
cfg := l.svcCtx.Config.Captcha
if err := captcha.Verify(captcha.Config{
if err := captcha.VerifyWithRequest(captcha.Config{
AccessKeyID: cfg.AccessKeyID,
AccessKeySecret: cfg.AccessKeySecret,
EndpointURL: cfg.EndpointURL,
SceneID: cfg.SceneID,
}, req.CaptchaVerifyParam); err != nil {
}, req.CaptchaVerifyParam, l.ctx); err != nil {
return err
}
// 默认action类型当未传入时默认为login便于小程序环境兼容