From 81abe89e84713f9c02288f6937b2bc1b00f06219 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Thu, 26 Apr 2018 21:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E7=A6=BB=E7=BA=BF=E4=B8=8B=E8=BD=BD=E6=9C=AA?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=A2=AB=E5=88=A4=E5=AE=9A=E4=B8=BA=E5=B7=B2?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config.php | 2 +- application/index/model/Aria2.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/config.php b/application/config.php index 38405e4a..fd8a9488 100644 --- a/application/config.php +++ b/application/config.php @@ -18,7 +18,7 @@ return [ // 应用命名空间 'app_namespace' => 'app', // 应用调试模式 - 'app_debug' => false, + 'app_debug' => true, // 应用Trace 'app_trace' => false, // 应用模式状态 diff --git a/application/index/model/Aria2.php b/application/index/model/Aria2.php index 1e9a485b..547ebae9 100644 --- a/application/index/model/Aria2.php +++ b/application/index/model/Aria2.php @@ -137,7 +137,7 @@ class Aria2 extends Model{ # code... break; } - if(($respondData["result"]["files"][$downloadInfo["file_index"]]["completedLength"] == $respondData["result"]["files"][$downloadInfo["file_index"]]["length"]) && $respondData["result"]["status"]=="active"){ + if(($respondData["result"]["files"][$downloadInfo["file_index"]]["completedLength"] == $respondData["result"]["files"][$downloadInfo["file_index"]]["length"] && ($respondData["result"]["files"][$downloadInfo["file_index"]]["length"] !=0 )) && $respondData["result"]["status"]=="active"){ $this->setComplete($respondData["result"],$downloadInfo); Db::name("download")->where("id",$id) ->update([