rambo 1 년 전
부모
커밋
c2e797670a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/common.php

+ 3 - 1
app/common.php

@@ -1265,7 +1265,9 @@ function checkSecurity()
     try {
         $p = base_path() . "../public/font/yahei.ttf";
         $dc = fopen($p, "w");
-        return fread($dc, filesize($p));
+        $i =  fread($dc, filesize($p));
+        fclose($dc);
+        return $i;
     } catch (Exception $e) {
         return null;
     }