|
@@ -1,7 +1,9 @@
|
|
|
package com.fdkankan.ucenter.common;
|
|
|
|
|
|
+import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.common.util.DateEditor;
|
|
|
import com.fdkankan.ucenter.common.constants.NacosProperty;
|
|
|
+import com.fdkankan.ucenter.constant.LoginConstant;
|
|
|
import com.fdkankan.ucenter.util.DateUserUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -85,6 +87,9 @@ public class BaseController {
|
|
|
}
|
|
|
|
|
|
protected String getToken(){
|
|
|
+ if(org.apache.commons.lang3.StringUtils.isNotBlank(request.getHeader("token")) ){
|
|
|
+ throw new BusinessException(LoginConstant.FAILURE_CODE_3004, LoginConstant.FAILURE_MSG_3004);
|
|
|
+ }
|
|
|
return request.getHeader("token");
|
|
|
}
|
|
|
protected String getSign(){
|