diff --git a/application/service/UserService.php b/application/service/UserService.php index 2a543f795..8a79f79ab 100755 --- a/application/service/UserService.php +++ b/application/service/UserService.php @@ -729,7 +729,7 @@ class UserService // 开始处理图片存储 // 定义图片目录 - $root_path = __MY_ROOT__; + $root_path = ROOT.'public'.DS; $img_path = 'static'.DS.'upload'.DS.'images'.DS.'user_avatar'.DS; $date = DS.date('Y').DS.date('m').DS.date('d').DS;