Compare commits
2 Commits
feat-cjy-t
...
main
Author | SHA1 | Date | |
---|---|---|---|
1c3e0b8f52 | |||
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.GetHeader("origin") == "https://erp-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