From f80c6068d5e2ae5b9101125497b4de88726e1d9e Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期日, 07 四月 2024 21:44:58 +0800 Subject: [PATCH] 发货接口增加仓库ID --- service/lru.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/service/lru.go b/service/lru.go index 5cdbac9..888aba5 100644 --- a/service/lru.go +++ b/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,8 +28,8 @@ return nil } var subIds []int - if userRecord.SubUserIds != nil && *userRecord.SubUserIds != "" { - subIds, _, err = userService.UUID2CrmUserId(strings.Split(*userRecord.SubUserIds, ",")) + if userRecord.SubUserIds != "" { + subIds, _, err = userService.UUID2CrmUserId(strings.Split(userRecord.SubUserIds, ",")) if err != nil { return nil } -- Gitblit v1.8.0