feat(jituan): 俱乐部商品类型/考核标签上架配置与抢单池过滤
This commit is contained in:
@@ -76,9 +76,18 @@ class BankuaiBiaoqianView(APIView):
|
||||
return Response({'code': 0, 'data': {'biaoqian_list': []}})
|
||||
|
||||
# 获取该板块下所有类型的标签(leixing可以为dashou/shangjia等,这里先返回所有)
|
||||
chenghao_list = Chenghao.objects.filter(bankuai=bankuai)
|
||||
chenghao_list = Chenghao.objects.filter(bankuai=bankuai, leixing='dashou')
|
||||
data = []
|
||||
from jituan.services.club_context import resolve_effective_club_id
|
||||
from jituan.services.club_kaohe_chenghao import filter_chenghao_ids_for_pool
|
||||
|
||||
club_id = resolve_effective_club_id(request, request.user)
|
||||
allowed_ids = set(
|
||||
filter_chenghao_ids_for_pool(club_id, list(chenghao_list.values_list('id', flat=True)))
|
||||
)
|
||||
for ch in chenghao_list:
|
||||
if ch.id not in allowed_ids:
|
||||
continue
|
||||
texiao_json = {}
|
||||
if ch.texiao_miaoshu:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user