| // +------------------------------------------------+ namespace app\common\service; use app\common\model\City as CityModel; use app\common\model\Province as ProvinceModel; class City extends _Init { public static function getData($id) { $list = CityModel::where('province_id', $id)->select(); $opt = ''; foreach ($list as $key => $val) { $opt .= "