pull/265/head
skiffer-git 2 years ago
parent 92a68108a6
commit eb960f2606

@ -402,7 +402,7 @@ func GetGroupMemberListHashFromCache(groupID string) (uint64, error) {
all += v all += v
} }
bi := big.NewInt(0) bi := big.NewInt(0)
bi.SetString(utils.Md5(all)[0:8], 10) bi.SetString(utils.Md5(all)[0:8], 16)
return strconv.Itoa(int(bi.Uint64())), nil return strconv.Itoa(int(bi.Uint64())), nil
} }
hashCode, err := db.DB.Rc.Fetch(groupMemberListHashCache+groupID, time.Second*30*60, generateHash) hashCode, err := db.DB.Rc.Fetch(groupMemberListHashCache+groupID, time.Second*30*60, generateHash)

Loading…
Cancel
Save