|
@@ -271,6 +271,13 @@ func (this *CustomManager) DoSearch() {
|
|
|
|
|
|
// checkActivityUser 校验用户是否是活跃用户
|
|
// checkActivityUser 校验用户是否是活跃用户
|
|
func (this *CustomManager) checkActivityUser(userId string) (exists bool) {
|
|
func (this *CustomManager) checkActivityUser(userId string) (exists bool) {
|
|
|
|
+ if len(vars.Config.TestUid) > 0 {
|
|
|
|
+ for _, uid := range vars.Config.TestUid {
|
|
|
|
+ if uid == userId {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.RLock()
|
|
this.RLock()
|
|
defer this.RUnlock()
|
|
defer this.RUnlock()
|
|
_, exists = this.UserGroup[userId]
|
|
_, exists = this.UserGroup[userId]
|