commit
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user