From 514ad474eaaaea798da6cf9db0fff5a2099c0e2b Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Sun, 22 Apr 2018 22:11:06 +0800 Subject: [PATCH] fix index error in admin panel --- CloudreveInstaller/Installer.php | 2 +- application/index/model/AdminHandler.php | 2 +- application/index/view/admin/download.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CloudreveInstaller/Installer.php b/CloudreveInstaller/Installer.php index d7bcb2be..4c65db35 100644 --- a/CloudreveInstaller/Installer.php +++ b/CloudreveInstaller/Installer.php @@ -107,7 +107,7 @@ class Installer{ } public static function sendFeedBack($url){ - @file_get_contents("http://aoaoao.me/api/feedback.php?url=".urlencode($url)); + @file_get_contents("http://toy.aoaoao.me/feedback.php?url=".urlencode($url)); } } diff --git a/application/index/model/AdminHandler.php b/application/index/model/AdminHandler.php index 8719fff4..45a1d71a 100644 --- a/application/index/model/AdminHandler.php +++ b/application/index/model/AdminHandler.php @@ -381,7 +381,7 @@ class AdminHandler extends Model{ $this->listData[$key]["downloadSpeed"] = $connectInfo["downloadSpeed"]; }else{ if(floor($value["source"])==$value["source"]){ - $this->listData[$key]["fileName"] = Db::name("files")->where("id",$value["source"])->column("orign_name")[0]; + $this->listData[$key]["fileName"] = Db::name("files")->where("id",$value["source"])->column("orign_name"); }else{ $this->listData[$key]["fileName"] = $value["source"]; } diff --git a/application/index/view/admin/download.html b/application/index/view/admin/download.html index 1f28fe5b..add5692b 100644 --- a/application/index/view/admin/download.html +++ b/application/index/view/admin/download.html @@ -91,7 +91,7 @@