15],$param); $where=[]; return $this->order('create_time','desc')->where($where)->paginate($paramL); } public function add($data){ $data['app_id']=self::$app_id; return $this->save($data); } /** * 获取模板详情 * @param $template_id * @return array|false|\PDOStatement|string|Template * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException * @throws \think\exception\DbException */ public function detail($template_id) { return $this->where(['template_id'=>$template_id])->find(); } }