request->param("news_id"); $archives = new Archives(); @$news = $archives->alias("archives") ->join("peewee_cms_addonnews" . ' addon', 'addon.id=archives.id', 'LEFT') ->where("archives.id", "eq", $news_id) ->find() ->toArray(); if (@empty($news)) { $this->error("新闻信息不存在"); } $this->result("获取成功", $news, 1); } }