命石增加每日抽卡次数上限
parent
fa7487bf1d
commit
4012e07f0a
|
@ -457,7 +457,8 @@ public class EquipLogic {
|
||||||
|
|
||||||
public void setDayLotteryCount(int uid, int libraryId, int count){
|
public void setDayLotteryCount(int uid, int libraryId, int count){
|
||||||
String key = getDayLotteryKey(uid);
|
String key = getDayLotteryKey(uid);
|
||||||
RedisUtil.getInstence().putMapEntry2(key, String.valueOf(libraryId), count);
|
int number = getDayLotteryCount(uid, libraryId) + count;
|
||||||
|
RedisUtil.getInstence().putMapEntry2(key, String.valueOf(libraryId), number);
|
||||||
RedisUtil.getInstence().expireMills(key, TimeUtils.getToTomorrowTimeS());
|
RedisUtil.getInstence().expireMills(key, TimeUtils.getToTomorrowTimeS());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue