处理前端上传头像

(cherry picked from commit de40de4f171ada01f1d276dbd524a0e9db7af858)
This commit is contained in:
吴昊天 2023-03-21 16:27:29 +08:00
parent a68157dc50
commit ff8cc6dc82

View File

@ -564,6 +564,7 @@ if (!function_exists('put_image')) {
//文件保存路径
ob_start();
$url = str_replace('phar://', '', $url);
readfile($url);
$img = ob_get_contents();
ob_end_clean();