Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
flucout committed Oct 12, 2023
1 parent 22ca21e commit 3c66d2f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/controller/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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")]);
Expand All @@ -24,7 +24,7 @@ public function get_plugin_list(){

//获取插件列表(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")]);
Expand Down
2 changes: 1 addition & 1 deletion app/script/convert.sh
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
4 changes: 2 additions & 2 deletions install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
13 changes: 6 additions & 7 deletions public/install/install_6.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
echo "/${auth_path}" > ${admin_auth}
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
Expand Down Expand Up @@ -1034,7 +1032,7 @@ if [ "${PANEL_SSL}" == "True" ];then
HTTP_S="https"
else
HTTP_S="http"
fi
fi

echo > /www/server/panel/data/bind.pl
echo -e "=================================================================="
Expand All @@ -1059,3 +1057,4 @@ endTime=`date +%s`
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!"



Binary file modified public/install/src/panel6.zip
Binary file not shown.
Binary file not shown.

0 comments on commit 3c66d2f

Please sign in to comment.