修正字段名不同的问题
This commit is contained in:
@@ -1379,7 +1379,7 @@ class JiedanView(APIView):
|
||||
# 🔥 新增:调用打手每日统计(成交)
|
||||
try:
|
||||
update_dashou_daily_by_action(
|
||||
UserID=jiedan_dashou_id,
|
||||
yonghuid=jiedan_dashou_id,
|
||||
amount=dashou_fencheng,
|
||||
action=2 # 2 表示成交(结算)
|
||||
)
|
||||
@@ -2473,7 +2473,7 @@ class ShangjiaJiesuanView(APIView):
|
||||
# 新增:调用打手每日统计(成交)
|
||||
try:
|
||||
update_dashou_daily_by_action(
|
||||
UserID=jiedan_dashou_id,
|
||||
yonghuid=jiedan_dashou_id,
|
||||
amount=dashou_fencheng,
|
||||
action=2 # 2 表示成交(结算)
|
||||
)
|
||||
@@ -6251,7 +6251,7 @@ class ZxsjghdsView(APIView):
|
||||
if dashou_id:
|
||||
try:
|
||||
update_dashou_daily_by_action(
|
||||
UserID=dashou_id,
|
||||
yonghuid=dashou_id,
|
||||
amount=dashou_fencheng,
|
||||
action=3 # 3=退款
|
||||
)
|
||||
@@ -6443,7 +6443,7 @@ class ShangjiaFakuaiXiugaiView(APIView):
|
||||
return Response({'code': 403, 'msg': '商家状态异常'}, status=status.HTTP_403_FORBIDDEN)
|
||||
|
||||
operation = request.data.get('operation')
|
||||
dingdan_id = request.data.get('OrderID')
|
||||
dingdan_id = request.data.get('dingdan_id') or request.data.get('OrderID')
|
||||
if not dingdan_id:
|
||||
return Response({'code': 400, 'msg': '缺少订单ID'}, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user