头像框可以重复使用,重置时间

back_recharge
duhui 2021-01-18 09:57:20 +08:00
parent 14ba7c1599
commit 78827a8f33
1 changed files with 3 additions and 2 deletions

View File

@ -50,10 +50,11 @@ public class UseHeadFrameHandler extends BaseHandler<PlayerInfoProto.UseHeadFram
}
// 是否已经使用
Long time = user.getPlayerInfoManager().getHeadFrameValidTime().get(headFrameId);
/*Long time = user.getPlayerInfoManager().getHeadFrameValidTime().get(headFrameId);
if (time != null){
throw new ErrorCodeException(ErrorCode.newDefineCode("头像框使用中,不能再次使用"));
}
}*/
// 赋值到期时间
long now = TimeUtils.now() / 1000;
long endTime = now + headIcon.getTime();