This commit is contained in:
2026-04-23 21:26:32 +08:00
parent b80e06b0d0
commit c36838307a

View File

@@ -49,6 +49,11 @@ type EncryptedSceneIdReq struct {
// @Failure 500 {object} map[string]interface{} "服务器内部错误"
// @Router /api/v1/captcha/encryptedSceneId [post]
func (h *CaptchaHandler) GetEncryptedSceneId(c *gin.Context) {
if !h.config.SMS.CaptchaEnabled {
h.response.BadRequest(c, "滑块验证码未启用")
return
}
expireSec := 3600
if c.Request.ContentLength > 0 {
var req EncryptedSceneIdReq