From 7d7653d13ff86e0990b82430f11fc764bd542580 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 29 十一月 2023 15:59:51 +0800 Subject: [PATCH] bug修复 --- constant.py | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/constant.py b/constant.py index 08b6d7b..bc99eb3 100644 --- a/constant.py +++ b/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(): -- Gitblit v1.8.0