fix: 管理员换打手跳过客服统计字段

This commit is contained in:
XingQue
2026-06-20 00:44:34 +08:00
parent 157ac05632
commit 4ded4ea50a

View File

@@ -8135,11 +8135,12 @@ class ZxkfghdsView(APIView):
except Exception as e:
logger.error(f"打手每日统计更新失败: {e}")
# 5.5 客服处理统计
kefu.jinrichuli += 1
kefu.jinyuechuli += 1
kefu.zongchuli += 1
kefu.save()
# 5.5 客服处理统计(管理员无 KefuProfile跳过
if hasattr(kefu, 'jinrichuli'):
kefu.jinrichuli += 1
kefu.jinyuechuli += 1
kefu.zongchuli += 1
kefu.save()
# 至此,原订单已退款,事务提交