diff --git a/app/command/CleanViteJs.php b/app/command/CleanViteJs.php index dd1f357..a96f667 100644 --- a/app/command/CleanViteJs.php +++ b/app/command/CleanViteJs.php @@ -107,13 +107,13 @@ class CleanViteJs extends Command $flag = false; if(strpos($file, 'window.location.protocol.indexOf("https")>=0')!==false){ //index - $file = str_replace('(window.location.protocol.indexOf("https")>=0)', '1', $file); + $file = str_replace('window.location.protocol.indexOf("https")>=0', '!0', $file); $code = $this->getExtendCode($file, 'isGetCoupon:', 2); if($code){ $file = str_replace($code, '{}', $file); } $file = preg_replace('!recommendShow:\w+,!', 'recommendShow:!1,', $file, 1); - $code = $this->getExtendCode($file, '"需求反馈"', 1, '[', ']'); + $code = $this->getExtendCode($file, '"打开需求反馈"', 1, '[', ']'); if($code){ $file = str_replace($code, '[]', $file); } diff --git a/app/script/convert.sh b/app/script/convert.sh index ae0764a..6551a62 100644 --- a/app/script/convert.sh +++ b/app/script/convert.sh @@ -1,6 +1,6 @@ #!/bin/bash -Linux_Version="9.6.0" +Linux_Version="11.0.0" Windows_Version="8.2.2" Aapanel_Version="7.0.16" Btm_Version="2.3.0" @@ -23,6 +23,7 @@ public/install/update/LinuxPanel_EN-${Aapanel_Version}.zip public/install/install_7.0_en.sh public/install/update_7.x_en.sh ) +PL_FILE="public/install/update/LinuxPanel-${Linux_Version}.pl" DIR=$1 SITEURL=$2 @@ -80,6 +81,10 @@ do fi done +HASH=$(sha256sum "${DIR}public/install/update/LinuxPanel-${Linux_Version}.zip" | awk '{print $1}') +TIMESTAMP=$(date +%s) +printf '{"hash": "%s", "update_time": "%s"}' "$HASH" "$TIMESTAMP" > "${DIR}${PL_FILE}" + echo "==========================" echo "处理完成" echo "==========================" diff --git a/app/view/admin/set.html b/app/view/admin/set.html index c1c82fb..8d110e6 100644 --- a/app/view/admin/set.html +++ b/app/view/admin/set.html @@ -104,17 +104,17 @@