Commit e530c815 by 庄欣

add icon

parent 601fffb8
......@@ -98,7 +98,8 @@ class User extends Controller
{
$user = UserModel::where("access_token",$code)->first();
try {
return Response::success($user['id']);
$user = UserModel::where("access_token",$code)->first();
return Response::success($user->id);
} catch (\Exception $e) {
return Response::error("未登录",HttpStatus::HttpUnauthorized);
}
......
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