修复了一些可能影响生产的问题

This commit is contained in:
2026-06-14 23:08:44 +08:00
parent 21bb129c5d
commit a155dc9f33
43 changed files with 66 additions and 210 deletions

View File

@@ -22,16 +22,11 @@ logger = logging.getLogger(__name__)
@shared_task(bind=True, max_retries=3, default_retry_delay=60)
def process_expired_order(self, dingdan_id):
"""
处理单个超时订单(订单状态=8超过48小时未处理
"""
try:
# 使用select_for_update锁定记录防止并发修改
with transaction.atomic():