feat: 点单横幅/个人中心背景 page_key,并 seed 转盘菜单
新增 accept_order_banner2、boss_center;菜单定义写入 product.turntable,不影响现有俱乐部数据隔离。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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': '未做任何修改'})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user