diff --git a/functions/cache.php b/functions/cache.php index 2aef058..560827d 100644 --- a/functions/cache.php +++ b/functions/cache.php @@ -41,10 +41,9 @@ $html = curl_exec($curl); curl_close($curl); - - $myfile = fopen($cachefile,"w") or die("Unable to open file!"); - fwrite($myfile, $html); - fclose($myfile); + #索引数据写入文件 + file_put_contents($cachefile,$html); + #读取索引 $cache = @file_get_contents($cachefile) or die("Unable to open file!"); } else{ diff --git a/functions/readme.php b/functions/readme.php index a3f687a..d30ca4a 100644 --- a/functions/readme.php +++ b/functions/readme.php @@ -19,7 +19,7 @@ - + @@ -31,8 +31,8 @@

©2020 本文档使用 MDtoHTML 构建 | The author xiaoz

- - + + - diff --git a/functions/version.txt b/functions/version.txt index 35515b7..6ffabbd 100644 --- a/functions/version.txt +++ b/functions/version.txt @@ -1 +1 @@ -1.3-20200405 \ No newline at end of file +1.32-2020504 \ No newline at end of file