排行榜按收益/流水排序;小程序配置与页面资源入库可后台管理
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user