Skip to content

Commit

Permalink
修复一些BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed May 4, 2020
1 parent c831868 commit e62cb32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions functions/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
7 changes: 3 additions & 4 deletions functions/readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<meta name="keywords" content="MDtoHTML,markdown" />
<meta name="description" content="MDtoHTML快速将Markdown文件转换为HTML" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.bootcss.com/highlight.js/9.12.0/styles/github.min.css" rel="stylesheet">
<link rel='stylesheet' href='https://libs.xiaoz.top/highlight.js/9.12.0/styles/github.min.css'>
<link rel="stylesheet" href="https://libs.xiaoz.top/layui-v2.2.5/layui/css/layui.css">
<link rel="stylesheet" href="../static/md.css">
</head>
Expand All @@ -31,8 +31,8 @@
<hr />
<p>&copy;2020 本文档使用 <a href="https://markdown.win/" target = "_blank">MDtoHTML</a> 构建 | The author <a href="https://www.xiaoz.me/" target = "_blank" title = "小z博客">xiaoz</a></p>
</div>
<script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src = 'https://libs.xiaoz.top/highlight.js/9.12.0/highlight.min.js'></script>
<script src = 'https://libs.xiaoz.top/jquery/2.2.4/jquery.min.js'></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
$(document).ready(function(){
Expand All @@ -44,6 +44,5 @@
}
});
</script>
<!--页面缓存于<?php echo $ftime; ?>-->
</body>
</html>
2 changes: 1 addition & 1 deletion functions/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3-20200405
1.32-2020504

0 comments on commit e62cb32

Please sign in to comment.