1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
-
-
- namespace app\admin\logic\community;
-
-
- use app\common\basics\Logic;
- use app\common\server\ConfigServer;
-
-
-
- class CommunitySettingLogic extends Logic
- {
-
-
-
- public static function getConfig()
- {
- $config = [
- 'status' => ConfigServer::get('community', 'status', 1),
- 'audit_article' => ConfigServer::get('community', 'audit_article', 1),
- 'audit_comment' => ConfigServer::get('community', 'audit_comment', 1),
- ];
- return $config;
- }
-
-
-
-
- public static function setConfig($post)
- {
- ConfigServer::set('community', 'status', $post['status']);
- ConfigServer::set('community', 'audit_article', $post['audit_article']);
- ConfigServer::set('community', 'audit_comment', $post['audit_comment']);
- }
-
-
- }
|