diff --git a/application/wechat/service/MediaService.php b/application/wechat/service/MediaService.php index 82a99396e..67b4cf034 100644 --- a/application/wechat/service/MediaService.php +++ b/application/wechat/service/MediaService.php @@ -78,7 +78,10 @@ class MediaService */ private static function getServerPath($local) { - if (file_exists($local)) return new MyCurlFile($local); - return new MyCurlFile(File::down($local)['file']); + if (file_exists($local)) { + return new MyCurlFile($local); + } else { + return new MyCurlFile(File::down($local)['file']); + } } }