50], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'ID' => 'ID', 'create_user_id' => 'Create User ID', 'create_time' => 'Create Time', 'update_user_id' => 'Update User ID', 'update_time' => 'Update Time', 'cancel_flag' => 'Cancel Flag', 'city_id' => 'City ID', 'city_name' => '城市', 'city_code' => 'City Code', 'province_id' => 'Province ID', 'province_name' => 'Province Name', 'country_id' => 'Country ID', ]; } public static function getCity($county_id) { $model = self::findAll(['cancel_flag' => 0, 'country_id' => $county_id]); return ArrayHelper::map($model, 'city_id', 'city_name'); } }