Commit c6458969 authored by hujun's avatar hujun

判断ajax请求

parent 92e2de09
...@@ -50,11 +50,12 @@ class Houses extends Basic ...@@ -50,11 +50,12 @@ class Houses extends Basic
$return = $this->response(101, 'add houses is error'); $return = $this->response(101, 'add houses is error');
} }
} elseif ($params['id']){ } elseif ($params['id']){
if ($this->request->isAjax()) {
//获取商铺详情 //获取商铺详情
$house = new GHouses(); $house = new GHouses();
$result['data'] = $house->getHouseById($params['id']); $result['data'] = $house->getHouseById($params['id']);
$return = $this->response($result['code'], $result['msg'], $result['data']); $return = $this->response($result['code'], $result['msg'], $result['data']);
}
} else { } else {
//商铺添加页面 //商铺添加页面
......
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