diff --git a/application/admin/view/widget/images.php b/application/admin/view/widget/images.php
index 1084e759..afa0c266 100644
--- a/application/admin/view/widget/images.php
+++ b/application/admin/view/widget/images.php
@@ -77,7 +77,7 @@
{volist name="list" id="vo"}
-

+
{/volist}
diff --git a/extend/service/UploadService.php b/extend/service/UploadService.php
index ed30d726..1aac2723 100644
--- a/extend/service/UploadService.php
+++ b/extend/service/UploadService.php
@@ -163,7 +163,7 @@ class UploadService
$fileName = basename($filePath);
$savePath = $dir.DS.$pre.$fileName;
$img->thumb($width,$height)->save($savePath);
- $savePath = str_replace(ROOT_PATH.'public','',$savePath);
+ $savePath = str_replace(ROOT_PATH.'public/uploads','',$savePath);
return ltrim($savePath,'.');
}
}
\ No newline at end of file
diff --git a/index.php b/index.php
index 615d71bd..ba58f4fa 100644
--- a/index.php
+++ b/index.php
@@ -25,5 +25,7 @@ if(file_exists("./public/install/") && !file_exists("./public/install/install.lo
define('APP_PATH', __DIR__ . '/application/');
//静态文件目录
define('PUBILC_PATH', '/public/');
+//上传文件目录
+define('UPLOAD_PATH', '/public/uploads');
// 加载框架引导文件
require __DIR__ . '/thinkphp/start.php';
diff --git a/public/index.php b/public/index.php
index 61a0dff5..e792aca8 100644
--- a/public/index.php
+++ b/public/index.php
@@ -25,5 +25,7 @@ if(file_exists("./install/") && !file_exists("./install/install.lock")){
define('APP_PATH', __DIR__ . '/../application/');
//静态文件目录
define('PUBILC_PATH', '/');
+//上传文件目录
+define('UPLOAD_PATH', '/uploads');
// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';