Browse Source

update

tags/2.1 2.1
flucout 11 months ago
parent
commit
3c66d2fc7b
  1. 4
      app/controller/Api.php
  2. 2
      app/script/convert.sh
  3. 4
      install.sql
  4. 9
      public/install/install_6.0.sh
  5. BIN
      public/install/src/panel6.zip
  6. BIN
      public/install/update/LinuxPanel-8.0.3.zip

4
app/controller/Api.php

@ -10,7 +10,7 @@ class Api extends BaseController
//获取插件列表
public function get_plugin_list(){
if(!$this->checklist()) return '';
if(!$this->checklist()) return json('你的服务器被禁止使用此云端');
$record = Db::name('record')->where('ip',$this->clientip)->find();
if($record){
Db::name('record')->where('id',$record['id'])->update(['usetime'=>date("Y-m-d H:i:s")]);
@ -24,7 +24,7 @@ class Api extends BaseController
//获取插件列表(win)
public function get_plugin_list_win(){
if(!$this->checklist()) return '';
if(!$this->checklist()) return json('你的服务器被禁止使用此云端');
$record = Db::name('record')->where('ip',$this->clientip)->find();
if($record){
Db::name('record')->where('id',$record['id'])->update(['usetime'=>date("Y-m-d H:i:s")]);

2
app/script/convert.sh

@ -1,6 +1,6 @@
#!/bin/bash
Linux_Version="8.0.2"
Linux_Version="8.0.3"
Windows_Version="7.9.0"
Btm_Version="2.2.9"

4
install.sql

@ -12,9 +12,9 @@ INSERT INTO `cloud_config` (`key`, `value`) VALUES
('bt_key', ''),
('whitelist', '0'),
('download_page', '1'),
('new_version', '8.0.2'),
('new_version', '8.0.3'),
('update_msg', '暂无更新日志'),
('update_date', '2023-08-28'),
('update_date', '2023-10-08'),
('new_version_win', '7.9.0'),
('update_msg_win', '暂无更新日志'),
('update_date_win', '2023-07-20'),

9
public/install/install_6.0.sh

@ -786,16 +786,14 @@ Set_Bt_Panel(){
fi
sleep 1
admin_auth="/www/server/panel/data/admin_path.pl"
if [ "${SAFE_PATH}" ];then
auth_path=$SAFE_PATH
echo "/${auth_path}" > ${admin_auth}
fi
if [ ! -f ${admin_auth} ];then
auth_path=$(cat /dev/urandom | head -n 16 | md5sum | head -c 8)
echo "/${auth_path}" > ${admin_auth}
fi
auth_path=$(cat /dev/urandom | head -n 16 | md5sum | head -c 8)
if [ "${SAFE_PATH}" ];then
auth_path=$SAFE_PATH
echo "/${auth_path}" > ${admin_auth}
fi
chmod -R 700 $pyenv_path/pyenv/bin
btpip install docxtpl==0.16.7
/www/server/panel/pyenv/bin/pip3 install pymongo
@ -1059,3 +1057,4 @@ endTime=`date +%s`
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!"

BIN
public/install/src/panel6.zip

BIN
public/install/update/LinuxPanel-8.0.2.zip → public/install/update/LinuxPanel-8.0.3.zip

Loading…
Cancel
Save