Commit 539141ff authored by hujun's avatar hujun

商圈查询省区市判断修改

parent 67f8fb11
...@@ -123,9 +123,9 @@ class BusinessDistrict extends Basic ...@@ -123,9 +123,9 @@ class BusinessDistrict extends Basic
public function regions() { public function regions() {
$params = $this->request->param(); $params = $this->request->param();
$regions = new Regions(); $regions = new Regions();
$params['code'] = empty($params['code'])? $params['code'] : ''; $params['code'] = empty($params['code'])? '' : $params['code'];
$params['parent_code'] = empty($params['parent_code'])? $params['parent_code'] : ''; $params['parent_code'] = empty($params['parent_code'])? '' : $params['parent_code'];
$params['type'] = empty($params['type'])? $params['type'] : ''; $params['type'] = empty($params['type'])? '' : $params['type'];
$data = $regions->getRegions($params['code'], $params['parent_code'], $params['type']); $data = $regions->getRegions($params['code'], $params['parent_code'], $params['type']);
return $this->response(200, '', $data); return $this->response(200, '', $data);
} }
......
...@@ -156,7 +156,6 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home ...@@ -156,7 +156,6 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
$.ajax ({ $.ajax ({
url: '/index/regions.html', url: '/index/regions.html',
type: 'GET', type: 'GET',
async: true,
dataType: 'json', dataType: 'json',
success: function (data) { success: function (data) {
if (data.code == 200) { if (data.code == 200) {
......
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