mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 14:36:34 +08:00
优化代码
This commit is contained in:
@@ -37,6 +37,10 @@ func (this *UserManager) UpdateUserServersIsEnabled(userId int64, isEnabled bool
|
||||
}
|
||||
|
||||
func (this *UserManager) CheckUserServersIsEnabled(userId int64) (isEnabled bool) {
|
||||
if userId <= 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
this.locker.RLock()
|
||||
u, ok := this.userMap[userId]
|
||||
if ok {
|
||||
|
||||
Reference in New Issue
Block a user