text: #! /usr/bin/env python3
  # coding: utf-8
  # flow@SEA
  # Licensed under the MIT License.
  
  import os
  from dotenv import load_dotenv, find_dotenv
  load_dotenv(find_dotenv(), override=True)
  
  class Config:
  
      @staticmethod
      def get_mysql_args():
          return {
              'host':    os.environ.get('MYSQLHOST'),
              'port':     int(os.environ.get('MYSQLPORT')),
              'user':     os.environ.get('MYSQLUSER'),
              'password': os.environ.get('MYSQLPASS'),
              'db':       os.environ.get('MYSQLDB'),
              'autocommit':True,
              'maxsize':256
          }
  
      @staticmethod
      def get_bonus_conf():
          return {
              "locked_bonus":{
                  "1000-30": 1.64,
                  "1000-90": 2.05,
                  "1000-180": 2.73,
                  "1000-360": 3.97,
                  "3000-30": 5.75,
                  "3000-90": 7.39,
                  "3000-180": 10.27,
                  "3000-360": 14.37,
                  "5000-30": 11.23,
                  "5000-90": 15.06,
                  "5000-180": 20.54,
                  "5000-360": 28.76,
                  "10000-30": 26.29,
                  "10000-90": 35.61,
                  "10000-180": 49.31,
                  "10000-360": 68.49,
              },
              "level_burned_bonus": {
                  "high_level": 1,
                  "equal_level": 0.95,
                  "low_one": 0.9,
                  "normal": 0
              },
              "small_area_burned_bonus": 0.8,
              "team_bonus_rate": {
                  5: 0.03,
                  6: 0.2,
                  7: 0.3,
                  8: 0.4,
                  9: 0.5
              }
          }
  
      @staticmethod
      def get_bonus_interval():
          '''获取分红的时间间隔，秒为单位'''
          return int(os.environ.get('BONUS_INTERVAL'))
  
      @staticmethod
      def get_bonus_start_time():
          '''开始分红的时间点，now：现在， 0：明天0点'''
          return os.environ.get('BONUS_START_TIME')
  
      @staticmethod
      def get_check_seac_asset():
          return os.environ.get('SEAC_ASSET')
  
      @staticmethod
      def get_address_for_receive_seac():
          return os.environ.get('ADDRESS_FOR_RECEIVE_SEAC')
  