fix: 提现申请放行退款审核中订单,管理员拒绝退款不再500
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -822,11 +822,12 @@ class KefuPlatformRefundView(APIView):
|
||||
except Exception as e:
|
||||
logger.error(f"平台退款更新退款记录异常: {str(e)}", exc_info=True)
|
||||
|
||||
# 11. 更新客服统计数据
|
||||
kefu.jinrichuli += 1
|
||||
kefu.jinyuechuli += 1
|
||||
kefu.zongchuli += 1
|
||||
kefu.save()
|
||||
# 11. 更新客服统计数据(管理员无客服扩展表,跳过)
|
||||
if kefu is not None:
|
||||
kefu.jinrichuli += 1
|
||||
kefu.jinyuechuli += 1
|
||||
kefu.zongchuli += 1
|
||||
kefu.save()
|
||||
|
||||
# 🔥 新增:调用打手每日统计(成交)
|
||||
try:
|
||||
@@ -1082,11 +1083,12 @@ class KefuRejectRefundView(APIView):
|
||||
logger.error(f"打手每日统计更新失败: {e}")
|
||||
# 不影响主流程
|
||||
|
||||
# 10. 更新客服统计数据
|
||||
kefu.jinrichuli += 1
|
||||
kefu.jinyuechuli += 1
|
||||
kefu.zongchuli += 1
|
||||
kefu.save()
|
||||
# 10. 更新客服统计数据(管理员无客服扩展表,跳过)
|
||||
if kefu is not None:
|
||||
kefu.jinrichuli += 1
|
||||
kefu.jinyuechuli += 1
|
||||
kefu.zongchuli += 1
|
||||
kefu.save()
|
||||
|
||||
return Response({'code': 0, 'msg': '拒绝退款成功'})
|
||||
|
||||
@@ -1352,10 +1354,11 @@ class KefuRejectSettlementView(APIView):
|
||||
|
||||
|
||||
|
||||
kefu.jinrichuli += 1
|
||||
kefu.jinyuechuli += 1
|
||||
kefu.zongchuli += 1
|
||||
kefu.save()
|
||||
if kefu is not None:
|
||||
kefu.jinrichuli += 1
|
||||
kefu.jinyuechuli += 1
|
||||
kefu.zongchuli += 1
|
||||
kefu.save()
|
||||
|
||||
return Response({'code': 0, 'msg': '拒绝结算成功'})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user