Explorar o código

fix: 先不校验验证码

alphah hai 2 semanas
pai
achega
f926d17fb5
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      backend/app/api/v1/module_system/auth/service.py

+ 3 - 1
backend/app/api/v1/module_system/auth/service.py

@@ -702,7 +702,9 @@ class SmsCodeService:
             template_param=template.template_param_fn(code=code),
         )
 
-        return await SmsSender.send_sms(request)
+        # 投产时解除注释
+        # return await SmsSender.send_sms(request)
+        return True  # 测试阶段跳过实际发送
         
     
     @classmethod