123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
-
- namespace app\admin\logic\setting;
-
- use app\common\basics\Logic;
- use app\common\server\ConfigServer;
-
-
- class MapLogic extends Logic
- {
-
-
- public static function getConfig()
- {
- $config = [
- 'tx_map_key' => ConfigServer::get('map', 'tx_map_key'),
- 'is_open_nearby' => ConfigServer::get('map', 'is_open_nearby',0),
- ];
- return $config;
- }
-
-
-
- public static function setConfig($post)
- {
- ConfigServer::set('map', 'tx_map_key', $post['tx_map_key']);
- ConfigServer::set('map', 'is_open_nearby', $post['is_open_nearby']);
- }
-
-
- }
|