diff --git a/application/service/UserService.php b/application/service/UserService.php index e97ce8eefb817145997a6a08c6773d0b52a59aeb..2a543f7955f799e008bbc9dd2422928a74dc7c7b 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; // 图像类库