Compare commits
No commits in common. "main" and "feature-tiktok-daiyb" have entirely different histories.
main
...
feature-ti
@ -120,11 +120,8 @@ 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)))
|
||||||
if !(ctx != nil && (ctx.GetHeader("origin") == "https://erp-out.szjixun.cn")) {
|
return
|
||||||
service.ErrorWeb(ctx, e.NotLogin, errors.New(logic.ConvertOfflineMsg(ctx, e.ErrOffline)))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//1 获取用户的账号信息
|
//1 获取用户的账号信息
|
||||||
|
Loading…
Reference in New Issue
Block a user