uniapp广告完播规则修改

This commit is contained in:
张松
2025-01-16 14:46:44 +08:00
parent 2dd2641bef
commit 81e4a0b5fc
2 changed files with 9 additions and 0 deletions

View File

@@ -32,4 +32,7 @@ public interface RedisService {
boolean isCanCash(Long userId);
boolean setCreateOrderFlagAndCheckLimit(Long userId, Long orderId);
void removeCanCashFlag(Long userId);
}

View File

@@ -348,6 +348,12 @@ public class RedisServiceImpl implements RedisService {
return StrUtil.isNotBlank(s);
}
@Override
public void removeCanCashFlag(Long userId) {
String key = "cash:canCash:" + userId;
redisUtils.delete(key);
}
@Override
public boolean setCreateOrderFlagAndCheckLimit(Long userId, Long orderId) {
String key = "createOrder:" + userId + ":" + orderId;