修正了前后端名称不一致问题
This commit is contained in:
@@ -3541,7 +3541,7 @@ class QiangdanView(APIView):
|
||||
|
||||
def post(self, request):
|
||||
data = request.data
|
||||
dingdan_id = data.get('OrderID')
|
||||
dingdan_id = data.get('dingdan_id') or data.get('OrderID')
|
||||
if not dingdan_id:
|
||||
return Response({'code': 400, 'msg': '订单ID不能为空'}, status=400)
|
||||
|
||||
@@ -3580,7 +3580,7 @@ class QiangdanView(APIView):
|
||||
|
||||
try:
|
||||
update_dashou_daily_by_action(
|
||||
UserID=order.PlayerID,
|
||||
yonghuid=order.PlayerID,
|
||||
amount=order.PlayerCommission,
|
||||
action=1
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user