Commit e5fe0ca4 authored by Quxl's avatar Quxl

后台登陆

parent 8441b28d
......@@ -41,7 +41,7 @@ public class AdminTokenServiceImpl implements AdminTokenService {
session.setAttribute(TOKEN_NAME, token);
Cookie cookie = WebMvcConfig.getCookie(JSESSIONID);
if(cookie != null) {
String sql = "update fc_admin set token = ? where id = ?";
String sql = "update fc_admin set token = ? where adminid = ?";
jdbcTemplate.executeUpdate(sql, cookie.getValue(), adminid);
}
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