修复了属性取值问题
This commit is contained in:
@@ -3864,7 +3864,7 @@ class AdckyhxqView(APIView):
|
||||
'phone': user_main.Phone,
|
||||
'ip': user_main.IP,
|
||||
'create_time': user_main.UserCreateTime,
|
||||
'update_time': user_main.update_time,
|
||||
'update_time': user_main.UserCreateTime,
|
||||
'user_type': user_type
|
||||
}
|
||||
|
||||
@@ -8562,7 +8562,7 @@ class KefuGetDashouDetailView(APIView):
|
||||
try:
|
||||
# 使用 select_related 预加载 dashou_profile,减少数据库查询
|
||||
user_main = User.query.select_related('DashouProfile').get(
|
||||
yonghuid=uid
|
||||
UserUID=uid
|
||||
)
|
||||
except User.DoesNotExist:
|
||||
return Response({'code': 404, 'msg': '打手不存在'}, status=status.HTTP_404_NOT_FOUND)
|
||||
@@ -9042,13 +9042,13 @@ class KefuPunishmentListView(APIView):
|
||||
list_data = []
|
||||
for item in records:
|
||||
list_data.append({
|
||||
'dingdan_id': item.dingdan_id,
|
||||
'dashouid': item.dashouid,
|
||||
'qingqiuid': item.qingqiuid,
|
||||
'cfliyou': item.cfliyou,
|
||||
'sqzhuangtai': item.sqzhuangtai,
|
||||
'create_time': item.create_time,
|
||||
'update_time': item.update_time,
|
||||
'dingdan_id': item.OrderID,
|
||||
'dashouid': item.PlayerID,
|
||||
'qingqiuid': item.ApplicantID,
|
||||
'cfliyou': item.PenaltyReason,
|
||||
'sqzhuangtai': item.ApplyStatus,
|
||||
'create_time': item.CreateTime,
|
||||
'update_time': item.UpdateTime,
|
||||
# 其他字段按需添加
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user