diff --git a/config.json.example b/config.json.example index 05616c1d..6b0a32e1 100644 --- a/config.json.example +++ b/config.json.example @@ -1,4 +1,5 @@ { + "admin_mode": true, "leverage": { "btc_eth_leverage": 5, "altcoin_leverage": 5 diff --git a/config/database.go b/config/database.go index aeab9bbb..87e74b72 100644 --- a/config/database.go +++ b/config/database.go @@ -211,6 +211,7 @@ func (d *Database) initDefaultData() error { // 初始化系统配置 systemConfigs := map[string]string{ + "admin_mode": "true", "api_server_port": "8080", "use_default_coins": "true", "coin_pool_api_url": "",