This commit is contained in:
aozhiwei 2024-08-14 11:23:36 +08:00
parent 425eacf9db
commit 17c7b693ca
2 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,8 @@ class Other(object):
['goldSyn',0,'金币合成'],
['heroPieceSyn',0,'英雄碎片合成'],
['chipPieceSyn',0,'芯片碎片合成'],
], '开关信息'],
['shop',0,'商店'],
], '开关信息(如果没有则默认为未开启)'],
]
},
]

View File

@ -1,6 +1,7 @@
<?php
use phpcommon\SqlHelper;
class ServerSwitch {
const SERVER_SWITCH_KEY = 'server_switch_redis_key:';
@ -64,8 +65,6 @@ class ServerSwitch {
foreach ($rows as $row){
$data[$row['switch_name']] = $row['is_open'];
}
}else{
$data = getServerSwitchConfig();
}
return $data;
}