...
|
...
|
@@ -132,7 +132,7 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel { |
|
|
let usedArr = await this.client.zrangebyscoreAsync(`turntable:${obj.act_id}:user:${obj.uid}:prize`, startTime, endTime);
|
|
|
|
|
|
if (usedArr.length > 100) {
|
|
|
await this.client.del(`turntable:${obj.act_id}:user:${obj.uid}:prize`);
|
|
|
await this.client.delAsync(`turntable:${obj.act_id}:user:${obj.uid}:prize`);
|
|
|
}
|
|
|
|
|
|
residueCount = data.conf.day_limit_times;
|
...
|
...
|
@@ -213,7 +213,7 @@ class ActWheelSurfModelRedis extends global.yoho.BaseModel { |
|
|
let usedArr = await this.client.zrangebyscoreAsync(`turntable:${obj.act_id}:user:${obj.uid}:prize`, startTime, endTime);
|
|
|
|
|
|
if (usedArr.length > 100) {
|
|
|
await this.client.del(`turntable:${obj.act_id}:user:${obj.uid}:prize`);
|
|
|
await this.client.delAsync(`turntable:${obj.act_id}:user:${obj.uid}:prize`);
|
|
|
}
|
|
|
|
|
|
residueCount = conf.day_limit_times;
|
...
|
...
|
|