Commit 8d8db052 authored by Quxl's avatar Quxl

x

parent 68a1fefd
......@@ -96,7 +96,7 @@ public class UserTokenServiceImpl implements UserTokenService {
HttpSession session = WebMvcConfig.getSession();
try {
String sql = "select uid from fc_user where token = ?";
Long uid = jdbcTemplate.queryForLong(sql, token_string);
Integer uid = jdbcTemplate.queryForInt(sql, token_string);
LoginToken token = new LoginToken(uid);
session.setAttribute(TOKEN_NAME, token);
return true;
......
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