1
This commit is contained in:
parent
28a61308c9
commit
6fcb3e1879
@ -406,6 +406,10 @@ class BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
public static function verifySwitch($name) {
|
||||
myself()->_callServiceStatic('ServerSwitchService', 'verifySwitch', $name);
|
||||
}
|
||||
|
||||
public function _mergeAlikeItemKey($items){
|
||||
$hashItems = array();
|
||||
foreach ($items as $item){
|
||||
|
@ -41,6 +41,14 @@ class ServerSwitchService {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function verifySwitch($name) {
|
||||
if (self::getConfig()[$name] > 0){
|
||||
return;
|
||||
}
|
||||
myself()->_rspErr(1008, 'function is disabled');
|
||||
die();
|
||||
}
|
||||
|
||||
// private $switchConfig = null;
|
||||
//
|
||||
// private function initConfig(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user