This commit is contained in:
Gordon 2022-08-24 20:33:41 +08:00
parent 06a75a0a0e
commit 27dd574c4d

View File

@ -382,9 +382,12 @@ func GetJoinedSuperGroupListFromCache(userID string) ([]string, error) {
return string(bytes), utils.Wrap(err, "") return string(bytes), utils.Wrap(err, "")
} }
joinedSuperGroupListStr, err := db.DB.Rc.Fetch(joinedSuperGroupListCache+userID, time.Second*30*60, getJoinedSuperGroupIDList) joinedSuperGroupListStr, err := db.DB.Rc.Fetch(joinedSuperGroupListCache+userID, time.Second*30*60, getJoinedSuperGroupIDList)
if err != nil {
return nil, err
}
var joinedSuperGroupList []string var joinedSuperGroupList []string
err = json.Unmarshal([]byte(joinedSuperGroupListStr), &joinedSuperGroupList) err = json.Unmarshal([]byte(joinedSuperGroupListStr), &joinedSuperGroupList)
return joinedSuperGroupList, err return joinedSuperGroupList, utils.Wrap(err, "")
} }
func DelJoinedSuperGroupIDListFromCache(userID string) error { func DelJoinedSuperGroupIDListFromCache(userID string) error {