/** * 查找首页布局的元素 * @param $id * @return ShopIndexLayout * @throws DeepInException */ protected function find($id) { $layout = ShopIndexLayout::find($id); if ($layout instanceof ShopIndexLayout) { return $layout; } throw new DeepInException("找不到对应的布局~!"); }