소스 검색

处理前端上传头像

吴昊天 2 년 전
부모
커밋
de40de4f17
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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();