This commit is contained in:
耿阳 2025-09-09 18:51:41 +08:00
commit 9b07b6b973

View File

@ -120,9 +120,12 @@ func CheckWebLogin(provider *account.AccountClientImpl) gin.HandlerFunc {
//} //}
if info.IsOffline == true { 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))) service.ErrorWeb(ctx, e.NotLogin, errors.New(logic.ConvertOfflineMsg(ctx, e.ErrOffline)))
return return
} }
}
//1 获取用户的账号信息 //1 获取用户的账号信息
infoReq := &account.InfoRequest{ infoReq := &account.InfoRequest{