Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
BUG修复
  • Loading branch information
AyagawaSeirin committed Jan 20, 2020
1 parent d8381ed commit 4d69559
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 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.2
* @version 1.0.3
* @dependence 1.0-*
*
*/
Expand Down Expand Up @@ -77,7 +77,7 @@ public static function config(Typecho_Widget_Helper_Form $form)
async: true,
type: "GET",
success: function (data) {
var now = "1.0.2";
var now = "1.0.3";
var newest = data[0][\'tag_name\'];
if(newest == null){
notice = "检查更新失败,请手动访问插件项目地址获取更新。";
Expand Down Expand Up @@ -180,7 +180,7 @@ public static function uploadHandle($file)
"User-Agent:" . $options->githubRepo
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.github.com/repos/" . $options->githubUser . "/" . $options->githubRepo . "/contents" . $path . "?access_token=" . $options->githubToken);
curl_setopt($ch, CURLOPT_URL, "https://api.github.com/repos/" . $options->githubUser . "/" . $options->githubRepo . "/contents" . $path_relatively . "?access_token=" . $options->githubToken);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jsDelivr为融合CDN,在全球分布750余节点(包括中国),并Github
关于jsDelivr运用于博客的优势本文不再赘述,具体请[访问这里](https://qwq.best/dev/113.html "访问这里")。<br>

## 最新版本
1.0.2 - 2020.01.20
1.0.3 - 2020.01.20<br>
(因为出了各种BUG,一次更新好几个版本...)

## 安装插件
Expand Down

0 comments on commit 4d69559

Please sign in to comment.