Browse Source

更新360自动开区脚本

gitwallet 1 year ago
parent
commit
7d2c37ae9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/timed_task.sh

+ 1 - 1
docs/timed_task.sh

@@ -34,7 +34,7 @@ mapserver() {
 mongodb_name=$((350001 + zone_id))
 mongodb_name=$((350001 + zone_id))
 port=$((8191 + zone_id))
 port=$((8191 + zone_id))
 
 
-update_sql="insert into game_server(id,name,status,ip,port,tag,tips,white_list,open_time) values(${zone_id},'${server_name} ${zone_id}', 1,'118.145.139.78',${port},'default','','',0);"
+update_sql="insert into game_server(id,name,status,ip,port,tag,tips,white_list,open_time) values(${zone_id},'${server_name}', 1,'118.145.139.78',${port},'default','','',0);"
 mysql -u $db_user -p$db_password $db_name -e "$update_sql"
 mysql -u $db_user -p$db_password $db_name -e "$update_sql"
 
 
 cur_time=$(date "+%Y-%m-%d %H:%M:%S")
 cur_time=$(date "+%Y-%m-%d %H:%M:%S")