Commit c6458969 authored by hujun's avatar hujun

判断ajax请求

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