添加网站文件
This commit is contained in:
24
application/admin/logic/OpLogic.php
Normal file
24
application/admin/logic/OpLogic.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\logic;
|
||||
use app\common\server\ConfigServer;
|
||||
|
||||
class OpLogic{
|
||||
public static function getConfig($config_list){
|
||||
$config = [];
|
||||
foreach ($config_list as $config_name){
|
||||
$value = ConfigServer::get('op', $config_name, '');
|
||||
$config[$config_name] = $value;
|
||||
}
|
||||
return $config;
|
||||
}
|
||||
public static function setConfig($config_list){
|
||||
foreach ($config_list as $config_name => $config_value){
|
||||
ConfigServer::set('op',$config_name,$config_value);
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user