From ec309c2b6a8e54602925430b202b5c43aa1839be Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Thu, 9 Apr 2020 14:52:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/ArticleController.class.php | 4 ++-- Documents | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 160000 Documents diff --git a/Application/Admin/Controller/ArticleController.class.php b/Application/Admin/Controller/ArticleController.class.php index ba62ede5f..db410f4bf 100644 --- a/Application/Admin/Controller/ArticleController.class.php +++ b/Application/Admin/Controller/ArticleController.class.php @@ -960,11 +960,11 @@ class ArticleController extends AdminController { $type = $upfile["type"]; $size = $upfile["size"]; $tmp_name = $upfile["tmp_name"]; - $savePath = $_SERVER['DOCUMENT_ROOT'].__ROOT__.'/Uploads/Documents/'; + $savePath = $_SERVER['DOCUMENT_ROOT'].__ROOT__.'/Documents/'; move_uploaded_file($tmp_name,$savePath.$name); $file_name = $savePath.$name; $error=$upfile["error"];//上传后系统返回的值 - $data['document_route'] = 'Uploads/Documents/'.$name; + $data['document_route'] = 'Documents/'.$name; M('document_pop_rules')->where(['id' => $id])->save($data); $backData['tmp'] = $file_name; $this->ajaxReturn(json_encode($backData,TRUE)); diff --git a/Documents b/Documents new file mode 160000 index 000000000..4c40f58e6 --- /dev/null +++ b/Documents @@ -0,0 +1 @@ +Subproject commit 4c40f58e6c0c9afe8a505f404b4df11a98f15653