增加ICP调用第三方API chinaz 查询并存储结果到数据库,批量查询,文件查询,文件查询导出 CN-664
This commit is contained in:
@@ -73,8 +73,7 @@ public class UserServiceImpl implements IUserService {
|
||||
if (Checker.isNotEmpty(token) && WebSketchApplication.tokens.containsKey(token)) {
|
||||
user = userDAO.getUserById(WebSketchApplication.tokens.get(token));
|
||||
if (Checker.isNotNull(response)) {
|
||||
Cookie cookie = new Cookie(ValueConsts.TOKEN_STRING, TokenConfig.generateToken(token, user.getId
|
||||
()));
|
||||
Cookie cookie = new Cookie(ValueConsts.TOKEN_STRING, TokenConfig.generateToken(token, user.getId ()));
|
||||
cookie.setMaxAge(30 * 24 * 60 * 60);
|
||||
response.addCookie(cookie);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user