From fc0053c6cd532b1e16a51dcb2b694d29f9cfab0f Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Mon, 30 Sep 2019 17:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=88=86=E5=8C=85=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/AutoPackController.class.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Application/Admin/Controller/AutoPackController.class.php b/Application/Admin/Controller/AutoPackController.class.php index e23db14e8..39ed6e914 100644 --- a/Application/Admin/Controller/AutoPackController.class.php +++ b/Application/Admin/Controller/AutoPackController.class.php @@ -397,12 +397,10 @@ class AutoPackController extends Think $new_to = ROOTTT . "Uploads/" . $file_name . "/" . $newname; $updata['savename'] = $newname; $updata['path'] = $new_to; - $result = $this -> upload_game_pak_oss($updata); + $this -> upload_game_pak_oss($updata); - if ($result) { - if (file_exists($new_to)) { - @unlink($new_to); - } + if (file_exists($new_to)) { + @unlink($new_to); } } elseif (get_tool_status("qiniu_storage") == 1) {