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

@@ -619,6 +619,7 @@ class ModifyProductTypeZoneView(APIView):
shenhezhuangtai=shenhezhuangtai,
paixu=0,
club_id=club_id,
tupian_url=(request.data.get('tupian_url') or '').strip(),
)
return Response({'code': 0, 'msg': '添加成功', 'data': {'id': zhuanqu.id, 'club_id': club_id}})
except Exception as e:
@@ -670,6 +671,12 @@ class ModifyProductTypeZoneView(APIView):
except (TypeError, ValueError):
return Response({'code': 400, 'msg': '审核状态无效必须为1或2'})
if 'tupian_url' in request.data:
new_url = (request.data.get('tupian_url') or '').strip()
old_url = getattr(zhuanqu, 'tupian_url', None) or ''
if new_url != old_url:
changes['tupian_url'] = new_url
if not changes:
return Response({'code': 400, 'msg': '未做任何修改'})