feat: 抢单池/组队角标计数多接口附加字段(兼容旧客户端)

This commit is contained in:
XingQue
2026-07-27 17:19:41 +08:00
parent 9b9203587c
commit 17b38d07a9
5 changed files with 152 additions and 3 deletions

View File

@@ -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,
},
})