@@ -45,6 +45,10 @@ func (this *AheadManager) GetData(userId, keyWords string, isNew bool, t int64)
if !(isNew || this.checkGroupUser(userId)) {
return nil
}
+ //查询是否是有超前项目权限
+ if power.HasAheadPower(userId) {
+ return nil
+ }
//校验每日请求次数
cacheKey := fmt.Sprintf(AheadRequestFrequencyCacheKey, time.Now().Format(public.TimeFormat), t, userId)
if this.Conf.DailyTimes <= redis.GetInt(AheadCacheDb, cacheKey) {
@@ -58,7 +58,7 @@ func (this *CustomManager) GetData(userId, keyWords string, isNew bool) map[stri
if !(isNew || this.checkActivityUser(userId)) {
- //查询是否是付费用户
+ //查询是否是有定制化分析报告权限
if power.HasPower(userId) {