zhangqian
2024-02-06 d28815a491eac43ad9153b7a83f27ce72d64a47e
service/lru.go
@@ -16,7 +16,7 @@
func init() {
   //make cache with 5 minutes TTL and 100 max keys
   userCache = expirable.NewLRU[string, *UserBaseInfo](100, nil, time.Minute*5)
   userCache = expirable.NewLRU[string, *UserBaseInfo](100, nil, time.Minute*1) //todo zq 暂时改成 1分钟
}
func GetUserBaseCache(adminUserId string) *UserBaseInfo {
@@ -28,7 +28,7 @@
         return nil
      }
      var subIds []int
      if len(userRecord.SubUserIds) > 0 {
      if userRecord.SubUserIds != "" {
         subIds, _, err = userService.UUID2CrmUserId(strings.Split(userRecord.SubUserIds, ","))
         if err != nil {
            return nil