|
@@ -75,6 +75,13 @@ func (this *AheadManager) Click(userId string) bool {
|
|
|
|
|
|
// CheckGroupUser 校验用户是否有资格展示
|
|
|
func (this *AheadManager) checkGroupUser(userId string) (exists bool) {
|
|
|
+ if len(vars.Config.TestUid) > 0 {
|
|
|
+ for _, uid := range vars.Config.TestUid {
|
|
|
+ if uid == userId {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
this.RLock()
|
|
|
defer this.RUnlock()
|
|
|
_, exists = this.UserGroup[userId]
|