select(); } // 获取详情 public static function info($id) { $footprintModel = new Footprint(); return $footprintModel->where(['id'=>(int)$id])->find(); } public static function edit($post) { try { $footprintModel = new Footprint(); $footprintModel->where(['id' => (int)$post['id']]) ->update(['status' => $post['status']]); return true; } catch (\Exception $e) { return false; } } public static function set($post) { try { ConfigServer::set('footprint', 'footprint_duration', $post['duration']); ConfigServer::set('footprint', 'footprint_status', $post['status']); return true; } catch (\Exception $e) { return false; } } }