diff --git a/README.md b/README.md index e4a9373..6e38f70 100755 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ OneNav是一款开源免费的书签(导航)管理程序,由xiaoz使用使 * 支持uTools插件 * 支持二级分类 * 支持Chromium内核的[浏览器扩展](https://dwz.ovh/4kxn2)(插件) +* 支持在线更新 ## 安装 @@ -41,11 +42,11 @@ OneNav是一款开源免费的书签(导航)管理程序,由xiaoz使用使 ```bash docker run -itd --name="onenav" -p 80:80 \ -v /data/onenav:/data/wwwroot/default/data \ - helloz/onenav:0.9.19 + helloz/onenav:0.9.22 ``` * 第一个`80`是自定义访问端口,可以自行修改,第二个`80`是容器端口,请勿修改 * `/data/onenav`:本机挂载目录,用于持久存储Onenav数据 -* `0.9.19`:改成OneNav最新版本号,可以通过[releases](https://github.com/helloxz/onenav/releases)查看最新版本号 +* `0.9.22`:改成OneNav最新版本号,可以通过[releases](https://github.com/helloxz/onenav/releases)查看最新版本号 > 更多说明,请参考帮助文档:https://dwz.ovh/onenav @@ -61,7 +62,7 @@ docker run -itd --name="onenav" -p 80:80 \ * Blog:https://www.xiaoz.me/ * QQ:446199062 -* QQ群:147687134 +* QQ群:932795364 * 社区支持:[https://dwz.ovh/vd0bw](https://dwz.ovh/vd0bw) ## 鸣谢 diff --git a/class/Api.php b/class/Api.php index 200d3a5..2be167d 100755 --- a/class/Api.php +++ b/class/Api.php @@ -1435,7 +1435,7 @@ class Api { #GET HTTPS $curl = curl_init($api_url); #设置useragent - #curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"); + curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"); curl_setopt($curl, CURLOPT_FAILONERROR, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); @@ -1486,7 +1486,7 @@ class Api { #GET HTTPS $curl = curl_init($api_url); #设置useragent - #curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"); + curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"); curl_setopt($curl, CURLOPT_FAILONERROR, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); @@ -1536,7 +1536,7 @@ class Api { //检查本地是否存在更新程序 $curl = curl_init($url); #设置useragent - #curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"); + curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"); curl_setopt($curl, CURLOPT_FAILONERROR, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); diff --git a/templates/admin/setting/subscribe.php b/templates/admin/setting/subscribe.php index cdbd92d..a261039 100644 --- a/templates/admin/setting/subscribe.php +++ b/templates/admin/setting/subscribe.php @@ -14,7 +14,7 @@