修复了客服日统计时机,展示更加全面的数据

This commit is contained in:
XingQue
2026-06-20 04:23:31 +08:00
parent 993c0c54b0
commit c70b2ee7be
10 changed files with 83 additions and 48 deletions

View File

@@ -7955,7 +7955,8 @@ class KefuRejectRefundView(APIView):
update_shangjia_daily(
yonghuid=shangjia_id,
amount=Decimal(str(order.Amount)),
action=2 # 2 = 结算
action=2, # 2 = 结算
order_id=dingdan_id,
)
except (ObjectDoesNotExist, User.DoesNotExist, AttributeError):
logger.warning(f"拒绝退款:商家信息不存在,跳过商家更新")
@@ -8136,7 +8137,8 @@ class KefuMerchantRefundView(APIView):
update_shangjia_daily(
yonghuid=shangjia_id,
amount=Decimal(str(order.Amount)),
action=3 # 3 = 退款
action=3, # 3 = 退款
order_id=dingdan_id,
)
@@ -9531,7 +9533,8 @@ class KefuForceCompleteView(APIView):
update_shangjia_daily(
yonghuid=shangjia_ext.shangjia_id,
amount=Decimal(str(order.Amount)),
action=2 # 2 = 结算
action=2, # 2 = 结算
order_id=dingdan_id,
)
except ObjectDoesNotExist: