暂时不限制登录区域

This commit is contained in:
刘祥超
2024-05-16 18:52:43 +08:00
parent 7247fff017
commit 2fd3150677

View File

@@ -265,6 +265,7 @@ func (this *IndexAction) RunPost(params struct {
// 检查登录区域
func (this *IndexAction) checkRegion() bool {
return true // 暂时不限制
var ip = loginutils.RemoteIP(&this.ActionObject)
var result = iplibrary.LookupIP(ip)
if result != nil && result.IsOk() && result.CountryId() > 0 && lists.ContainsInt64([]int64{9, 10}, result.CountryId()) {