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