Commit 8fa2e1af authored by xuepeng.chang's avatar xuepeng.chang

token 续期

parent a251ef6f
......@@ -6,6 +6,8 @@ package cn.quantgroup.xyqb;
*/
public interface Constants {
String BIAN_LI_KA_BA_TOKEN_PREFIX = "jr-";
// zero fill with 4 chars...
String ZERO_FILL_TEMPLATE = "%04d";
String IMAGE_CAPTCHA_KEY = "img_captcha:";
......
......@@ -213,7 +213,7 @@ public class SessionServiceImpl implements ISessionService {
@Override
public void persistSession(String token, SessionValue sessionValue, Long time, Integer tenantId) {
//
if(!token.contains(prefix)){
if(token.startsWith(Constants.BIAN_LI_KA_BA_TOKEN_PREFIX)){
log.info("token={},命中不能续期逻辑 id={}",token,JSON.toJSONString(sessionValue));
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment