Compare commits

...

2 Commits

Author SHA1 Message Date
gy
1c3e0b8f52 feat 修改头部字段 2025-09-10 13:24:06 +08:00
gy
e85207132f feat 增加一个jwt检验的校验绕过逻辑 2025-09-09 18:51:25 +08:00

View File

@ -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.GetHeader("origin") == "https://erp-out.szjixun.cn")) {
service.ErrorWeb(ctx, e.NotLogin, errors.New(logic.ConvertOfflineMsg(ctx, e.ErrOffline)))
return
}
} }
//1 获取用户的账号信息 //1 获取用户的账号信息