From e5a504babc851ed8becbac38f3bf7617b693ecbf Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Wed, 26 Sep 2018 09:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/system/SystemDatabackup.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/application/admin/controller/system/SystemDatabackup.php b/application/admin/controller/system/SystemDatabackup.php index 1877aa4c..7325ee3c 100644 --- a/application/admin/controller/system/SystemDatabackup.php +++ b/application/admin/controller/system/SystemDatabackup.php @@ -121,7 +121,7 @@ class SystemDatabackup extends AuthController { $part = $request->post('part') ? intval($request->post('part')) :null; $start = $request->post('start') === '0' ? 0 : null; - $time = strtotime($request->post('time')); + $time = intval($request->post('time')); $db = $this->DB; if(is_numeric($time) && is_null($part) && is_null($start)){ $list= $db->getFile('timeverif',$time); @@ -166,9 +166,6 @@ class SystemDatabackup extends AuthController public function downloadFile(Request $request = null) { $time = intval($request->param('feilname')); - $file_url = $this->DB->downloadFile($time); -// $file=fopen($file_url[0],'r'); -// echo fread($file,filesize($file_url)); -// fclose($file_url); + $this->DB->downloadFile($time); } }