Commit 5a9830c8 authored by Quxl's avatar Quxl

x

parent b874b46f
......@@ -51,7 +51,7 @@ public class UserTokenServiceImpl implements UserTokenService {
if(cookie != null) {
String sql = "update fc_user set token = ?, last_login_ip = ?, last_login_time = ? where uid = ?";
String loginIp = ServletUtil.remoteIp(WebMvcConfig.getRequest());
jdbcTemplate.executeUpdate(sql, cookie.getValue(), loginIp, System.currentTimeMillis()/1000, uid);
jdbcTemplate.executeUpdate(sql, cookie.getValue(), loginIp, new Date(), uid);
}
logger.debug("user login success: " + username);
return token;
......
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