Skip to content

Commit

Permalink
Update Plugin.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AyagawaSeirin committed Jan 20, 2020
1 parent c4f1247 commit 6c5609e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package UploadGithubForTypecho
* @author AyagawaSeirin
* @link https://qwq.best/
* @version 1.0.0
* @version 1.0.1
* @dependence 1.0-*
*
*/
Expand Down Expand Up @@ -76,7 +76,7 @@ public static function config(Typecho_Widget_Helper_Form $form)
async: true,
type: "GET",
success: function (data) {
var now = "1.0.0";
var now = "1.0.1";
var newest = data[0][\'tag_name\'];
if(newest == null){
notice = "检查更新失败,请手动访问插件项目地址获取更新。";
Expand Down Expand Up @@ -187,6 +187,9 @@ public static function uploadHandle($file)
curl_close($ch);

/* 写到本地文件 */
if (!is_dir($fileDir)){
mkdir($fileDir,0777,true);
}
file_put_contents(__TYPECHO_ROOT_DIR__ . $path, $fileContent);


Expand Down

0 comments on commit 6c5609e

Please sign in to comment.