Esempio n. 1
0
 /**
  * 查询商家列表
  * http://localhost/beauty/index.php?m=shop&c=index&a=getList&uid=1312313
  */
 public function getList()
 {
     $uid = getParams('uid', null);
     $page = getParams("page", 1);
     $param = array('uid' => $uid);
     $result = parent::queryObjectList($param, $page, $this->relations);
     echo json_encode(array('code' => '0', 'message' => '成功', 'data' => $result));
 }