修正一处DailyCache相关的问题

This commit is contained in:
Kokomi 2023-12-07 04:58:58 +08:00
parent 0b83e8d96b
commit 76c63405bb
1 changed files with 1 additions and 0 deletions

View File

@ -311,6 +311,7 @@ export default class DailyCache extends BaseModel {
*/ */
async zDel (table, key, delCount = false) { async zDel (table, key, delCount = false) {
// 删除key对应list所有记录 // 删除key对应list所有记录
key = key + ''
let check = redis.zScore(this.getTableKey(table, 'count'), key) let check = redis.zScore(this.getTableKey(table, 'count'), key)
await redis.zRemRangeByScore(this.getTableKey(table), key, key) await redis.zRemRangeByScore(this.getTableKey(table), key, key)
await this.zDisableKey(table, key, delCount) await this.zDisableKey(table, key, delCount)