Commit fd3164bd authored by Quxl's avatar Quxl

修改审片用户登陆BUG

parent b9cedc1f
......@@ -44,8 +44,7 @@ public class UserTokenServiceImpl implements UserTokenService {
session.setAttribute(TOKEN_NAME, token);
Cookie cookie = WebMvcConfig.getCookie(JSESSIONID);
if(cookie != null) {
String sql = "update fc_user set token = ? where id = ?";
jdbcTemplate.executeUpdate(sql, cookie.getValue(), uid);
jdbcTemplate.executeUpdate("update fc_user set token = ? where uid = ?", cookie.getValue(), uid);
}
return token;
} else {
......
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