fix getcities showing province
This commit is contained in:
parent
9dfcc7c0eb
commit
8767b823ca
@ -29,13 +29,8 @@ class AreaGeoModel extends BaseModel {
|
||||
return $rows;
|
||||
}
|
||||
|
||||
public function getCities($filter = []) {
|
||||
$this->select('AreaGeoID, AreaName')->where('Parent IS NOT NULL', null, false);
|
||||
|
||||
if (!empty($filter['AreaGeoID'])) {
|
||||
$this->where('Parent', $filter['AreaGeoID']);
|
||||
}
|
||||
|
||||
public function getCities() {
|
||||
$this->select('AreaGeoID, AreaName')->where('Parent > 0');
|
||||
return $this->findAll();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user