field('id,title,create_time,content,remark') ->where('del',0) ->where('enable',1) ->page($page,$size) ->order('id desc') ->select(); foreach ($list as $k=>$v){ $list[$k]['content'] = json_decode($v['content'],true); } HelpHander::success($list); } public function detail(){ $id = input('id',0); $info = Db::name('supervise')->where('id',$id)->find(); if(!$info){ HelpHander::success('参数错误'); } $info['content'] = json_decode($info['content'],true); HelpHander::success($info); } }