Przeglądaj źródła

处理前端上传头像

吴昊天 2 lat temu
rodzic
commit
de40de4f17
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      crmeb/app/common.php

+ 1 - 0
crmeb/app/common.php

@@ -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();