feat: 抢单池/组队角标计数多接口附加字段(兼容旧客户端)
This commit is contained in:
@@ -207,6 +207,12 @@ class ZuduiDatingView(APIView):
|
||||
team_svc.serialize_recruit_public(r, orders.get(r.order_id), include_game_ids=False)
|
||||
for r in rows
|
||||
]
|
||||
badge = {}
|
||||
try:
|
||||
from orders.services.dashou_badges import dashou_badge_fields
|
||||
badge = dashou_badge_fields(club)
|
||||
except Exception:
|
||||
badge = {}
|
||||
return Response({
|
||||
'code': 0,
|
||||
'msg': 'ok',
|
||||
@@ -216,6 +222,7 @@ class ZuduiDatingView(APIView):
|
||||
'page': page,
|
||||
'page_size': page_size,
|
||||
'has_more': start + len(rows) < total,
|
||||
**badge,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user