mirror of
https://github.com/flucont/btcloud.git
synced 2025-03-13 01:08:13 -04:00
update
This commit is contained in:
parent
0ca1c9d0e3
commit
2aff0d9e6d
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
- 全局搜索替换 https://api.bt.cn => http://www.example.com
|
- 全局搜索替换 https://api.bt.cn => http://www.example.com
|
||||||
|
|
||||||
- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/(需排除clearModel.py、scanningModel.py、ipsModel.py)
|
- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/(需排除clearModel.py、scanningModel.py、ipsModel.py、js文件)
|
||||||
|
|
||||||
- 全局搜索替换 http://www.bt.cn/api/ => http://www.example.com/api/(需排除js文件)
|
- 全局搜索替换 http://www.bt.cn/api/ => http://www.example.com/api/(需排除js文件)
|
||||||
|
|
||||||
@ -54,9 +54,7 @@
|
|||||||
|
|
||||||
在login_send_body方法内,free_login_area(login_ip=server_ip_area的server_ip_area改成login_ip
|
在login_send_body方法内,free_login_area(login_ip=server_ip_area的server_ip_area改成login_ip
|
||||||
|
|
||||||
- class/panelPlugin.py 文件,download_icon方法内替换 public.GetConfigValue('home') => 'https://www.bt.cn'
|
- class/panelPlugin.py 文件,删除public.total_keyword(get.query)这一行
|
||||||
|
|
||||||
删除public.total_keyword(get.query)这一行
|
|
||||||
|
|
||||||
__set_pyenv方法内,temp_file = public.readFile(filename)这行代码下面加上
|
__set_pyenv方法内,temp_file = public.readFile(filename)这行代码下面加上
|
||||||
|
|
||||||
@ -72,6 +70,8 @@
|
|||||||
softInfo['endtime'] = time.time() + 86400 * 3650
|
softInfo['endtime'] = time.time() + 86400 * 3650
|
||||||
```
|
```
|
||||||
|
|
||||||
|
plugin_bin.pl 改成 plugin_list.json
|
||||||
|
|
||||||
- class/plugin_deployment.py 文件,SetupPackage方法内替换 public.GetConfigValue('home') => 'https://www.bt.cn'
|
- class/plugin_deployment.py 文件,SetupPackage方法内替换 public.GetConfigValue('home') => 'https://www.bt.cn'
|
||||||
|
|
||||||
- class/config.py 文件,get_nps方法内data['nps'] = False改成True,get_nps_new方法下面加上 return public.returnMsg(False, "获取问卷失败")
|
- class/config.py 文件,get_nps方法内data['nps'] = False改成True,get_nps_new方法下面加上 return public.returnMsg(False, "获取问卷失败")
|
||||||
@ -105,10 +105,6 @@
|
|||||||
|
|
||||||
- 去除WebRTC连接:BTPanel/static/js/public.js 删除stun.start();这一行
|
- 去除WebRTC连接:BTPanel/static/js/public.js 删除stun.start();这一行
|
||||||
|
|
||||||
- 去除首页广告:BTPanel/static/js/index.js 文件删除两处index.recommend_paid_version()
|
|
||||||
|
|
||||||
- 去除首页自动检测更新,避免频繁请求云端:BTPanel/static/js/index.js 文件注释掉bt.system.check_update这一段代码外的setTimeout
|
|
||||||
|
|
||||||
- 去除内页广告:BTPanel/templates/default/layout.html 删除两处getPaymentStatus();
|
- 去除内页广告:BTPanel/templates/default/layout.html 删除两处getPaymentStatus();
|
||||||
|
|
||||||
- 删除问卷调查:BTPanel/templates/default/layout.html 删除if(window.localStorage.getItem('panelNPS') == null)以及下面的行
|
- 删除问卷调查:BTPanel/templates/default/layout.html 删除if(window.localStorage.getItem('panelNPS') == null)以及下面的行
|
||||||
|
@ -1,78 +1,80 @@
|
|||||||
# Windows面板官方更新包修改记录
|
# Windows面板官方更新包修改记录
|
||||||
|
|
||||||
查询最新版本号:https://www.bt.cn/api/wpanel/get_version?is_version=1
|
查询最新版本号:https://www.bt.cn/api/wpanel/get_version?is_version=1
|
||||||
|
|
||||||
官方更新包下载链接:http://download.bt.cn/win/panel/panel_版本号.zip
|
官方更新包下载链接:http://download.bt.cn/win/panel/panel_版本号.zip
|
||||||
|
|
||||||
假设搭建的宝塔第三方云端网址是 http://www.example.com
|
假设搭建的宝塔第三方云端网址是 http://www.example.com
|
||||||
|
|
||||||
Windows版宝塔由于加密文件太多,无法全部解密,因此无法做到全开源。
|
Windows版宝塔由于加密文件太多,无法全部解密,因此无法做到全开源。
|
||||||
|
|
||||||
- 删除PluginLoader.pyd,将win/PluginLoader.py复制到class文件夹
|
- 删除PluginLoader.pyd,将win/PluginLoader.py复制到class文件夹
|
||||||
|
|
||||||
- 全局搜索替换 https://api.bt.cn => http://www.example.com
|
- 批量解密模块文件:执行 php think decrypt classdir <面板class文件夹路径>
|
||||||
|
|
||||||
- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/(需排除ipsModel.py)
|
- 全局搜索替换 https://api.bt.cn => http://www.example.com
|
||||||
|
|
||||||
- 全局搜索替换 http://www.bt.cn/api/ => http://www.example.com/api/
|
- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/(需排除ipsModel.py)
|
||||||
|
|
||||||
- 全局搜索替换 https://download.bt.cn/win/panel/data/setup.py => http://www.example.com/win/panel/data/setup.py
|
- 全局搜索替换 https://download.bt.cn/win/panel/data/setup.py => http://www.example.com/win/panel/data/setup.py
|
||||||
|
|
||||||
- class/panel_update.py 文件 public.get_url() => 'http://www.example.com'
|
- class/panel_update.py 文件 public.get_url() => 'http://www.example.com'
|
||||||
|
|
||||||
- class/public.py 在
|
- class/public.py 在
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def GetConfigValue(key):
|
def GetConfigValue(key):
|
||||||
```
|
```
|
||||||
|
|
||||||
这一行下面加上
|
这一行下面加上
|
||||||
|
|
||||||
```python
|
```python
|
||||||
if key == 'home': return 'http://www.example.com'
|
if key == 'home': return 'http://www.example.com'
|
||||||
```
|
```
|
||||||
|
|
||||||
在 def is_bind(): 这一行下面加上 return True
|
在 def is_bind(): 这一行下面加上 return True
|
||||||
|
|
||||||
在 def check_domain_cloud(domain): 这一行下面加上 return
|
在 def check_domain_cloud(domain): 这一行下面加上 return
|
||||||
|
|
||||||
在 get_update_file() 方法里面 get_url() => GetConfigValue('home')
|
在 get_update_file() 方法里面 get_url() => GetConfigValue('home')
|
||||||
|
|
||||||
- class/plugin_deployment.py 文件 get_icon 和 SetupPackage 方法内,替换 public.GetConfigValue('home') => 'https://www.bt.cn'
|
- class/plugin_deployment.py 文件 get_icon 和 SetupPackage 方法内,替换 public.GetConfigValue('home') => 'https://www.bt.cn'
|
||||||
|
|
||||||
- 去除无用的定时任务:task.py 文件
|
- 去除无用的定时任务:task.py 文件
|
||||||
|
|
||||||
删除 p = threading.Thread(target=check_files_panel) 以及下面2行
|
删除 p = threading.Thread(target=check_files_panel) 以及下面2行
|
||||||
|
|
||||||
删除 p = threading.Thread(target=check_panel_msg) 以及下面2行
|
删除 p = threading.Thread(target=check_panel_msg) 以及下面2行
|
||||||
|
|
||||||
删除 p = threading.Thread(target=update_software_list) 以及下面2行
|
删除 p = threading.Thread(target=update_software_list) 以及下面2行
|
||||||
|
|
||||||
- 去除面板日志上报:script/site_task.py 文件
|
- 去除面板日志上报:script/site_task.py 文件
|
||||||
|
|
||||||
- 删除最下面 logs_analysis() 这1行
|
- 删除最下面 logs_analysis() 这1行
|
||||||
|
|
||||||
- 去除首页广告:BTPanel/static/js/index.js 文件删除最下面index.recommend_paid_version()这一行以及index.consultancy_services()这一行
|
- 去除首页广告:BTPanel/static/js/index.js 文件删除最下面index.recommend_paid_version()这一行以及index.consultancy_services()这一行
|
||||||
|
|
||||||
- 去除首页自动检测更新,避免频繁请求云端:BTPanel/static/js/index.js 文件注释掉bt.system.check_update这一段代码外的setTimeout
|
- 去除首页自动检测更新,避免频繁请求云端:BTPanel/static/js/index.js 文件注释掉bt.system.check_update这一段代码外的setTimeout
|
||||||
|
|
||||||
- 去除内页广告:BTPanel/templates/default/layout.html 删除getPaymentStatus();这一行
|
- 去除内页广告:BTPanel/templates/default/layout.html 删除getPaymentStatus();这一行
|
||||||
|
|
||||||
- [可选]去除各种计算题:复制win/bt.js到 BTPanel/static/ ,在 BTPanel/templates/default/layout.html 的尾部加入
|
- [可选]去除各种计算题:复制win/bt.js到 BTPanel/static/ ,在 BTPanel/templates/default/layout.html 的尾部加入
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
<script src="/static/bt.js"></script>
|
<script src="/static/bt.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
- [可选]去除创建网站自动创建的垃圾文件:class/panelSite.py 文件
|
- [可选]去除创建网站自动创建的垃圾文件:class/panelSite.py 文件
|
||||||
|
|
||||||
删除 htaccess = self.sitePath + '/.htaccess' 以及下面2行
|
删除 htaccess = self.sitePath + '/.htaccess' 以及下面2行
|
||||||
|
|
||||||
删除 index = self.sitePath + '/index.html' 以及下面6行
|
删除 index = self.sitePath + '/index.html' 以及下面6行
|
||||||
|
|
||||||
删除 doc404 = self.sitePath + '/404.html' 以及下面6行
|
删除 doc404 = self.sitePath + '/404.html' 以及下面6行
|
||||||
|
|
||||||
删除 if not os.path.exists(self.sitePath + '/.htaccess') 这一行
|
删除 if not os.path.exists(self.sitePath + '/.htaccess') 这一行
|
||||||
|
|
||||||
- [可选]关闭自动生成访问日志:在 BTPanel/\_\_init\_\_.py 删除public.write_request_log()这一行
|
- [可选]关闭自动生成访问日志:在 BTPanel/\_\_init\_\_.py 删除public.write_request_log()这一行
|
||||||
|
|
||||||
|
- [可选]上传文件默认选中覆盖,在BTPanel/static/js/upload-drog.js,id="all_operation"加checked属性
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user