Commit e6185d0a by 庄欣

fade user

parent 5bdeab44
......@@ -79,10 +79,6 @@ class User extends Controller
/*获取一个用户登录状态*/
public function getUserByHashCode($code)
{
$res = UserModel::getUserInfo(4);
return Response::success($res);
$redis = mRedis::getRedis();
$user = $redis->hGet(self::REDIS_AUTHKEY,$code);
if (isset($user['expire']) && $user['expire'] < time()) {
......
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