mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update MediaService.php
This commit is contained in:
parent
a6df40e320
commit
c7a981a352
@ -78,7 +78,10 @@ class MediaService
|
|||||||
*/
|
*/
|
||||||
private static function getServerPath($local)
|
private static function getServerPath($local)
|
||||||
{
|
{
|
||||||
if (file_exists($local)) return new MyCurlFile($local);
|
if (file_exists($local)) {
|
||||||
return new MyCurlFile(File::down($local)['file']);
|
return new MyCurlFile($local);
|
||||||
|
} else {
|
||||||
|
return new MyCurlFile(File::down($local)['file']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user