$count, "balance" => $balance, "list" => $list, "revenue" => $revenue, "inactive" => $inactive, "active" => $active, "inactive_percentage" => $inactive_percentage, "active_percentage" => $active_percentage ); // 将关联数组转换为 JSON 格式并输出 echo json_encode($data); } else { // echo "查询出错!"; }