修正字段名不同的问题
This commit is contained in:
@@ -6332,12 +6332,12 @@ class DsqrgmdhView(APIView):
|
||||
return Response({'code': 500, 'msg': '打手信息不存在,无法充值押金'}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
||||
|
||||
elif leixing == 4:
|
||||
if fadan_obj.zhuangtai not in [1, 3]:
|
||||
if fadan_obj.Status not in [1, 3]:
|
||||
return Response({'code': 400, 'msg': '罚单状态不可缴纳'}, status=status.HTTP_400_BAD_REQUEST)
|
||||
fadan_obj.zhuangtai = 2
|
||||
fadan_obj.save(update_fields=['zhuangtai'])
|
||||
fadan_obj.Status = 2
|
||||
fadan_obj.save(update_fields=['Status'])
|
||||
response_data['fadan_id'] = fadan_obj.id
|
||||
response_data['fadan_status'] = fadan_obj.zhuangtai
|
||||
response_data['fadan_status'] = fadan_obj.Status
|
||||
|
||||
# ========== 修改点2: 使用最新的分红处理方法 ==========
|
||||
success, msg = process_fadan_fenhong(fadan_obj.id)
|
||||
|
||||
Reference in New Issue
Block a user