Commit 601fffb8 by 庄欣

add icon

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