diff --git a/core/function.php b/core/function.php index e5ba16f..10e2dd6 100644 --- a/core/function.php +++ b/core/function.php @@ -2,7 +2,7 @@ /* 获取主题当前版本号 */ function _getVersion() { - return "6.3.7"; + return "6.3.8"; }; /* 判断是否是手机 */ diff --git a/core/route.php b/core/route.php index 305f72e..5b4b8ad 100644 --- a/core/route.php +++ b/core/route.php @@ -169,7 +169,7 @@ function _getRecord($self) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $baiduSite); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); - curl_setopt($ch, CURLOPT_REFERER, "https://www.baidu.com/s?ie=UTF-8&wd={$url}"); + curl_setopt($ch, CURLOPT_REFERER, "https://www.baidu.com/s?ie=UTF-8&wd={$site}"); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate'); diff --git a/package.json b/package.json index d4f6c9c..9b532fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typecho-joe-next", - "version": "6.3.7", + "version": "6.3.8", "description": "A Theme Of Typecho", "main": "index.php", "keywords": [