排行榜按收益/流水排序;小程序配置与页面资源入库可后台管理

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-06-27 01:04:04 +08:00
parent ceaca8bf4d
commit 2c4ad6e13a
15 changed files with 718 additions and 111 deletions

View File

@@ -3,7 +3,7 @@
"""
import logging
from django.conf import settings
from utils.xcx_sys_config import wx_cfg
logger = logging.getLogger('weixin_broadcast')
@@ -29,7 +29,7 @@ def build_order_broadcast_payload(dingdan, order_type='普通订单', game_type=
def submit_dingdan_guangbo(order_info):
"""提交 Celery 广播任务broadcast 优先队列)"""
if not getattr(settings, 'WEIXIN_BROADCAST_ENABLED', True):
if not wx_cfg.WEIXIN_BROADCAST_ENABLED:
logger.info('服务号广播已关闭,跳过')
return False
if not order_info or not order_info.get('dingdan_id'):