Browse Source

0.9.22

pull/81/head
xiaoz 2 years ago
parent
commit
156bbfae96
  1. 7
      README.md
  2. 6
      class/Api.php
  3. 4
      templates/admin/setting/subscribe.php
  4. 2
      version.txt

7
README.md

@ -26,6 +26,7 @@ OneNav是一款开源免费的书签(导航)管理程序,由xiaoz使用使
* 支持uTools插件 * 支持uTools插件
* 支持二级分类 * 支持二级分类
* 支持Chromium内核的[浏览器扩展](https://dwz.ovh/4kxn2)(插件) * 支持Chromium内核的[浏览器扩展](https://dwz.ovh/4kxn2)(插件)
* 支持在线更新
## 安装 ## 安装
@ -41,11 +42,11 @@ OneNav是一款开源免费的书签(导航)管理程序,由xiaoz使用使
```bash ```bash
docker run -itd --name="onenav" -p 80:80 \ docker run -itd --name="onenav" -p 80:80 \
-v /data/onenav:/data/wwwroot/default/data \ -v /data/onenav:/data/wwwroot/default/data \
helloz/onenav:0.9.19 helloz/onenav:0.9.22
``` ```
* 第一个`80`是自定义访问端口,可以自行修改,第二个`80`是容器端口,请勿修改 * 第一个`80`是自定义访问端口,可以自行修改,第二个`80`是容器端口,请勿修改
* `/data/onenav`:本机挂载目录,用于持久存储Onenav数据 * `/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 > 更多说明,请参考帮助文档:https://dwz.ovh/onenav
@ -61,7 +62,7 @@ docker run -itd --name="onenav" -p 80:80 \
* Blog:https://www.xiaoz.me/ * Blog:https://www.xiaoz.me/
* QQ:446199062 * QQ:446199062
* QQ群:147687134 * QQ群:932795364
* 社区支持:[https://dwz.ovh/vd0bw](https://dwz.ovh/vd0bw) * 社区支持:[https://dwz.ovh/vd0bw](https://dwz.ovh/vd0bw)
## 鸣谢 ## 鸣谢

6
class/Api.php

@ -1435,7 +1435,7 @@ class Api {
#GET HTTPS #GET HTTPS
$curl = curl_init($api_url); $curl = curl_init($api_url);
#设置useragent #设置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_FAILONERROR, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
@ -1486,7 +1486,7 @@ class Api {
#GET HTTPS #GET HTTPS
$curl = curl_init($api_url); $curl = curl_init($api_url);
#设置useragent #设置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_FAILONERROR, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
@ -1536,7 +1536,7 @@ class Api {
//检查本地是否存在更新程序 //检查本地是否存在更新程序
$curl = curl_init($url); $curl = curl_init($url);
#设置useragent #设置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_FAILONERROR, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

4
templates/admin/setting/subscribe.php

@ -14,7 +14,7 @@
<li>2. 可在线更新和下载主题(实现中...)</li> <li>2. 可在线更新和下载主题(实现中...)</li>
<li>3. 可享受一对一售后服务(仅限高级版和商业版)</li> <li>3. 可享受一对一售后服务(仅限高级版和商业版)</li>
<li>4. 可帮助OneNav持续发展,让OneNav变得更加美好</li> <li>4. 可帮助OneNav持续发展,让OneNav变得更加美好</li>
<li>5. 更多高级功能(实现中...</li> <li>5. 更多高级功能(自定义版权、广告管理等</li>
</ol> </ol>
</div> </div>
</div> </div>
@ -55,6 +55,7 @@
<div class="layui-form-item"> <div class="layui-form-item">
<button class="layui-btn" lay-submit="" lay-filter="set_subscribe">保存设置</button> <button class="layui-btn" lay-submit="" lay-filter="set_subscribe">保存设置</button>
<button class="layui-btn" lay-submit="" lay-filter="reset_subscribe">删除订阅</button> <button class="layui-btn" lay-submit="" lay-filter="reset_subscribe">删除订阅</button>
<a class="layui-btn layui-btn-danger" rel = "nofollow" target = "_blank" title = "点此购买订阅" href="https://dwz.ovh/69h9q"><i class="fa fa-shopping-cart"></i> 购买订阅</a>
</div> </div>
</form> </form>
@ -83,6 +84,7 @@
<div class="layui-input-inline"> <div class="layui-input-inline">
<button id = "btn_update" class="layui-btn" lay-submit="" onclick = "update_main()">立即更新</button> <button id = "btn_update" class="layui-btn" lay-submit="" onclick = "update_main()">立即更新</button>
<button id = "btn_updating" style = "display:none;" class="layui-btn layui-btn-disabled" >更新中,请勿关闭窗口</button> <button id = "btn_updating" style = "display:none;" class="layui-btn layui-btn-disabled" >更新中,请勿关闭窗口</button>
<a href="https://dwz.ovh/7q4z6" title = "点此查看更新失败的原因" rel = "nofollow" target = "_blank">更新失败?</a>
</div> </div>
<!-- 更新进度条 --> <!-- 更新进度条 -->
<div id="progress"> <div id="progress">

2
version.txt

@ -1 +1 @@
v0.9.22-20220527 v0.9.22-20220602
Loading…
Cancel
Save