/** * 查询商家详情 * http://localhost/beauty/index.php?m=tuan&c=index&a=queryTuanDetail&id=3 */ public function getDetail() { $id = getParams('id', ''); $result = parent::queryObjectById($id, $this->relations); echo json_encode(array('code' => '0', 'message' => '成功', 'data' => $result)); }