Merge branch 'gy' of https://gitea-net.fontree.cn/fiee/fonchain-fiee into dev
This commit is contained in:
commit
9b07b6b973
@ -120,8 +120,11 @@ func CheckWebLogin(provider *account.AccountClientImpl) gin.HandlerFunc {
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
if info.IsOffline == true {
|
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 获取用户的账号信息
|
//1 获取用户的账号信息
|
||||||
|
Loading…
Reference in New Issue
Block a user