@@ -50,8 +50,8 @@ class ServerInfoController extends Controller
*/
public function list(Request $request)
{
- $top = ServerInfo::where("location", "top");
- $bottom = ServerInfo::where("location", "bottom");
+ $top = ServerInfo::where("location", "top")->get();
+ $bottom = ServerInfo::where("location", "bottom")->get();
return Response()->json([
"top" => $top,
"introduce" => "服务介绍",