feat: 点单横幅/个人中心背景 page_key,并 seed 转盘菜单

新增 accept_order_banner2、boss_center;菜单定义写入 product.turntable,不影响现有俱乐部数据隔离。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-22 20:21:16 +08:00
parent 6a107e873d
commit 43ad221c67
5 changed files with 46 additions and 10 deletions

View File

@@ -81,11 +81,17 @@ class ShangpinGonggaoView(APIView):
"""
try:
logger.info("收到商品公告和轮播图请求")
from jituan.services.display_config import get_gonggao_content, get_lunbo_urls, normalize_page_key
from jituan.services.display_config import (
get_gonggao_content,
get_lunbo_urls,
lunbo_image_type_for_page,
normalize_page_key,
)
page_key = normalize_page_key(request.data.get('page_key'), image_type=1)
image_type = lunbo_image_type_for_page(page_key)
gonggao_content = get_gonggao_content(request, notice_type=1, page_key=page_key)
lunbo_urls = get_lunbo_urls(request, page_key=page_key, image_type=1)
lunbo_urls = get_lunbo_urls(request, page_key=page_key, image_type=image_type)
response_data = {
"shangpingonggao": gonggao_content,
"shangpinlunbo": lunbo_urls,