Update mw.tpl

This commit is contained in:
Mr Chen 2024-11-01 02:40:33 +08:00
parent 0c9fe565e4
commit c291cc57e7
1 changed files with 10 additions and 0 deletions

View File

@ -231,6 +231,11 @@ error_logs()
mw_update()
{
if [ -f $mw_path/task.py ];then
echo "与后续版本差异太大,不再提供更新"
exit 0
fi
LOCAL_ADDR=common
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
@ -246,6 +251,11 @@ mw_update()
mw_update_dev()
{
if [ -f $mw_path/task.py ];then
echo "与后续版本差异太大,不再提供更新"
exit 0
fi
LOCAL_ADDR=common
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then