Compare commits
No commits in common. "9b07b6b973166bcbbfc990521974f058261c6dc3" and "93abf257961b5ca6a3dce3b9061d019466120a70" have entirely different histories.
9b07b6b973
...
93abf25796
@ -120,11 +120,8 @@ func CheckWebLogin(provider *account.AccountClientImpl) gin.HandlerFunc {
|
||||
//}
|
||||
|
||||
if info.IsOffline == true {
|
||||
//如果是来自体制外的请求,过滤挤掉校验
|
||||
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
|
||||
}
|
||||
service.ErrorWeb(ctx, e.NotLogin, errors.New(logic.ConvertOfflineMsg(ctx, e.ErrOffline)))
|
||||
return
|
||||
}
|
||||
|
||||
//1 获取用户的账号信息
|
||||
|
Loading…
Reference in New Issue
Block a user