Commit ac3f97be authored by hujun's avatar hujun

城市名获取区

parent 193cc01f
...@@ -224,7 +224,13 @@ class BusinessDistrict extends Basic ...@@ -224,7 +224,13 @@ class BusinessDistrict extends Basic
public function getAllDisc() { public function getAllDisc() {
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
$regions = new Regions(); $regions = new Regions();
$data = $regions->getDiscByCity($this->city);
if (empty($this->params['city'])) {
$city = $this->city;
} else {
$city = $this->params['city'];
}
$data = $regions->getDiscByCity($city);
return $this->response(200, '', $data); return $this->response(200, '', $data);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment