From 95e18d831b6e1e3509e24e1fe3eed9f1d0b70f6d Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 31 七月 2025 14:13:27 +0800
Subject: [PATCH] 添加推送日志

---
 constant.py |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/constant.py b/constant.py
index 3683cdc..e71aeb6 100644
--- a/constant.py
+++ b/constant.py
@@ -1,6 +1,18 @@
 import platform
 
 TEST = False
+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,27 @@
     "passwd": "Yeshi2016@"
 }
 
+if IS_A:
+    MYSQL_CONFIG = {
+        "host": "172.16.16.17",
+        "port": 3306,
+        "database": "gp_a",
+        "charset": "utf8",
+        "user": "root",
+        "passwd": "Yeshi2016@"
+    }
+
+if TEST:
+    MYSQL_CONFIG = {
+        "host": "gz-cdb-r13d0yi9.sql.tencentcdb.com",
+        "port": 62929,
+        "database": "gp",
+        "charset": "utf8",
+        "user": "root",
+        "passwd": "Yeshi2016@"
+    }
+
+LOG_DIR = "logs"
 
 # 鑾峰彇鏍硅矾寰�
 def get_path_prefix():

--
Gitblit v1.8.0