setMeta('自动复制配置'); return $this->fetch(); } public function refreshs(){ } public function copylogs(){ $tid = input('tid'); $where = array(); if($tid){ $where['tid'] = $tid; } $data = db('plan_copy_log')->where($where)->whereTime('addtime', 'week')->order('id desc')->select(); foreach($data as $k=>$v){ $data[$k]['addtime'] = substr(date("Y-m-d H:i:s",$v['addtime']),5,14); } exit(json_encode(array('status'=>1,'logs'=>$data))); } }