This commit is contained in:
sjk
2026-01-09 23:27:52 +08:00
parent 8446c004e7
commit 3b66018271
18 changed files with 2006 additions and 508 deletions

View File

@@ -36,6 +36,13 @@ func (ctrl *XHSController) SendCode(c *gin.Context) {
return
}
// 检查是否需要扫码验证
if needCaptcha, ok := result.Data["need_captcha"].(bool); ok && needCaptcha {
// 发送验证码时触发风控,返回二维码
common.SuccessWithMessage(c, result.Message, result.Data)
return
}
// 判断Python服务返回的结果
if result.Code != 0 {
common.Error(c, result.Code, result.Message)