getList(false,10,$this->location); return $this->renderSuccess(compact('list')); } /** * 门店列表 */ public function detail() { if($detail = ShopModel::detail($this->shop_id,$this->location)){ return $this->renderSuccess(compact('detail')); } return $this->renderError('门店不存在'); } }