From 4654449744894fb36cb5e9f11feac9d44c4108a1 Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Fri, 28 Dec 2018 22:25:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=A4=B4=E5=83=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/UserService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/service/UserService.php b/application/service/UserService.php index e97ce8eef..2a543f795 100755 --- a/application/service/UserService.php +++ b/application/service/UserService.php @@ -729,8 +729,8 @@ class UserService // 开始处理图片存储 // 定义图片目录 - $root_path = ROOT; - $img_path = 'public'.DS.'static'.DS.'upload'.DS.'images'.DS.'user_avatar'.DS; + $root_path = __MY_ROOT__; + $img_path = 'static'.DS.'upload'.DS.'images'.DS.'user_avatar'.DS; $date = DS.date('Y').DS.date('m').DS.date('d').DS; // 图像类库 -- GitLab