feat 增加一个jwt检验的校验绕过逻辑
This commit is contained in:
parent
e667837d6a
commit
e85207132f
@ -120,8 +120,11 @@ func CheckWebLogin(provider *account.AccountClientImpl) gin.HandlerFunc {
|
||||
//}
|
||||
|
||||
if info.IsOffline == true {
|
||||
service.ErrorWeb(ctx, e.NotLogin, errors.New(logic.ConvertOfflineMsg(ctx, e.ErrOffline)))
|
||||
return
|
||||
//如果是来自体制外的请求,过滤挤掉校验
|
||||
if !(ctx != nil && ctx.Request != nil && ctx.Request.Host == "erpapi-out.szjixun.cn") {
|
||||
service.ErrorWeb(ctx, e.NotLogin, errors.New(logic.ConvertOfflineMsg(ctx, e.ErrOffline)))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
//1 获取用户的账号信息
|
||||
|
Loading…
Reference in New Issue
Block a user