提现必须观看广告激励
This commit is contained in:
@@ -27,4 +27,7 @@ public interface RedisService {
|
||||
int getCourseWeekPayCount(long courseId);
|
||||
|
||||
|
||||
void setCanCashFlag(Long userId, Long id);
|
||||
|
||||
boolean isCanCash(Long userId);
|
||||
}
|
||||
|
||||
@@ -329,4 +329,17 @@ public class RedisServiceImpl implements RedisService {
|
||||
redisUtils.set(key, i, -1);
|
||||
return i;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCanCashFlag(Long userId, Long id) {
|
||||
String key = "cash:canCash:" + userId;
|
||||
redisUtils.set(key, id, 30);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCanCash(Long userId) {
|
||||
String key = "cash:canCash:" + userId;
|
||||
String s = redisUtils.get(key);
|
||||
return StrUtil.isNotBlank(s);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user