public void ticketNumAdd(String id,int ticketNum){
Cookie cookies[] = getCookieObjects();
for (int i = 0; i < cookies.length; i++) {
if(cookies[i].getValue().equals(id)){
return;
}
}
setCookie("hasAddTicketNum"+id, id, 60*60*24);
Cookie cookie = new Cookie("hasAddTicketNum"+id, id);
contentService.updateContentTicketNumById(id,ticketNum+1 );
}
Cookie记录访问次数
最新推荐文章于 2022-06-23 11:42:56 发布