|
@@ -291,8 +291,13 @@ func ClearUserPowerFunc(positionId, appId string) bool {
|
|
|
redis.Del(RedisCode, fmt.Sprintf(UserPowerRedisKey, appId, time.Now().Day(), v))
|
|
|
//企业关联缓存
|
|
|
entCacheKey := redis.GetStr(RedisCode, fmt.Sprintf(CheckEntKK, positionId))
|
|
|
- if entCacheKey != "" {
|
|
|
- redis.Del(RedisCode, entCacheKey)
|
|
|
+ if ecks := strings.Split(entCacheKey, ","); len(ecks) > 0 {
|
|
|
+ for _, ev := range ecks {
|
|
|
+ if ev != "" {
|
|
|
+ redis.Del(RedisCode, ev)
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return true
|
|
@@ -415,6 +420,9 @@ func (m *WorkDesktopMenu) CheckCapitalResources(menu *JYMenu, b, p bool, pUrl st
|
|
|
return false
|
|
|
}
|
|
|
}()
|
|
|
+ if menu.Id == 780547 {
|
|
|
+ log.Println("---------------")
|
|
|
+ }
|
|
|
//P630人脉管理
|
|
|
//用户 有权限 不再判断 弹窗提示信息
|
|
|
if usable {
|
|
@@ -439,7 +447,11 @@ func (m *WorkDesktopMenu) CheckCapitalResources(menu *JYMenu, b, p bool, pUrl st
|
|
|
if err == nil {
|
|
|
err = redis.PutBytes(RedisCode, checkEntKey, &mb, 4*60*60)
|
|
|
// 缓存key
|
|
|
- redis.Put(RedisCode, fmt.Sprintf(CheckEntKK, strconv.FormatInt(positionId, 10)), checkEntKey, 5*60*60)
|
|
|
+ ceks := redis.GetStr(RedisCode, fmt.Sprintf(CheckEntKK, strconv.FormatInt(positionId, 10)))
|
|
|
+ if !strings.Contains(ceks, checkEntKey) {
|
|
|
+ ceks = fmt.Sprintf("%s,%s", ceks, checkEntKey)
|
|
|
+ redis.Put(RedisCode, fmt.Sprintf(CheckEntKK, strconv.FormatInt(positionId, 10)), ceks, 5*60*60)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if err != nil {
|