1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\admin\logic\wechat;
-
- use app\common\basics\Logic;
- use app\common\server\ConfigServer;
-
- class OpLogic extends Logic
- {
- 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;
- }
- }
|