admin
2023-11-29 7d7653d13ff86e0990b82430f11fc764bd542580
constant.py
@@ -1,6 +1,18 @@
import platform
TEST = True
IS_A = False
##B类##
MIDDLE_SERVER_PORT = 10008
MIDDLE_API_SERVER_PORT = 11008
DATA_SERVER_PORT = 9004
##A类##
if IS_A:
    MIDDLE_SERVER_PORT = 10009
    MIDDLE_API_SERVER_PORT = 11009
    DATA_SERVER_PORT = 9005
# 买入分数分档
BUY_SCORE_RANK_0 = 150
@@ -39,6 +51,14 @@
    # "pwd": "123456"
}
if IS_A:
    REDIS_CONFIG = {
        "host": "172.16.32.8",
        "port": 6379,
        "db": 0,
        "pwd": "Yeshi2016@"
    }
MYSQL_CONFIG = {
    "host": "192.168.3.252",
    "port": 3306,
@@ -55,6 +75,16 @@
    "passwd": "Yeshi2016@"
}
if IS_A:
    MYSQL_CONFIG = {
        "host": "172.16.16.17",
        "port": 3306,
        "database": "gp_a",
        "charset": "utf8",
        "user": "root",
        "passwd": "Yeshi2016@"
    }
# 获取根路径
def get_path_prefix():