feat:添加男女圣职

This commit is contained in:
西瓜°
2026-02-17 17:28:12 +08:00
parent 9d48a7376e
commit f81d25cc4d
10 changed files with 160 additions and 154 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ from config.main import config
def get_redis_info(redis, key, fun, expire = 0, without_gzip=False):
info = None
if redis and not config.DEBUG_MODE:
if not config.DEBUG_MODE and redis:
try:
if without_gzip:
info = json.loads(redis.get(key))
@@ -15,7 +15,7 @@ def get_redis_info(redis, key, fun, expire = 0, without_gzip=False):
info = None
if info is None:
info = fun()
if redis and info is not None:
if not config.DEBUG_MODE and redis and info is not None:
if without_gzip:
redis.set(key, json.dumps(info))
else: