getUser(false), $page_id); return $this->renderSuccess($data); } /** * 首页diy数据 (即将废弃) * @return array * @throws \app\common\exception\BaseException * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException * @throws \think\exception\DbException */ public function home() { // 页面元素 $data = WxappPage::getPageData($this->getUser(false)); return $this->renderSuccess($data); } /** * 自定义页数据 (即将废弃) * @param $page_id * @return array * @throws \app\common\exception\BaseException * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException * @throws \think\exception\DbException */ public function custom($page_id) { // 页面元素 $data = WxappPage::getPageData($this->getUser(false), $page_id); return $this->renderSuccess($data); } }