修复了客服日统计时机,展示更加全面的数据
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user