|
|
@@ -3,6 +3,7 @@ package com.goafanti.common.controller;
|
|
|
import java.text.DateFormat;
|
|
|
import java.text.MessageFormat;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
+import java.util.Calendar;
|
|
|
import java.util.Date;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -126,6 +127,10 @@ public class BaseController {
|
|
|
model.addAttribute("csrf", TokenManager.getCSRF());
|
|
|
model.addAttribute("videoServer", videoServer);
|
|
|
model.addAttribute("isAdmin", false);
|
|
|
+ int yearCount=0;
|
|
|
+ Calendar c=Calendar.getInstance();
|
|
|
+ yearCount=c.getWeekYear()-2001;
|
|
|
+ model.addAttribute("yearCount", yearCount);
|
|
|
if (TokenManager.isLogin() && TokenManager.getToken() instanceof User) {
|
|
|
model.addAttribute("userData", TokenManager.getUserToken());
|
|
|
model.addAttribute("userName", TokenManager.getUserToken().getNickname());
|