/** * 获取地区 */ public function getqu() { header('Content-Type:application/json; charset=utf-8'); $cid = $_POST['cid']; $citymod = new CityModel(); $pro_list = $citymod->getqu($cid); if ($pro_list) { echo json_encode(array("status" => 1, "data" => $pro_list)); } else { echo json_encode(array("status" => 0, "data" => array())); } }