From 15381c305117148cd5580dd8a63e9df836297c08 Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Fri, 19 Jun 2026 15:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=20=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=AD=97=E6=AE=B5=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orders/views.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/orders/views.py b/orders/views.py index 7dace0f..435a872 100644 --- a/orders/views.py +++ b/orders/views.py @@ -1787,9 +1787,9 @@ class ShangpinLeixingView(APIView): for sp in shangpin_queryset: item = { 'id': sp.id, - 'GrabRequirement': sp.GrabRequirement, - 'MembershipID': sp.MembershipID, - 'Description': sp.Description, + 'GrabRequirement': sp.yaoqiuleixing, + 'MembershipID': sp.huiyuan_id, + 'Description': sp.jieshao, # 当前类型所属板块的称号列表(无板块则为空数组) 'chenghaoList': bankuai_chenghao_map.get(sp.bankuai_id, []) } @@ -1870,15 +1870,15 @@ class ShangjiaPaifaView(APIView): final_huiyuan_id = '' logger.info(f"押金模式: 佣金={cv}") else: - final_yaoqiu_type = shangpin_type.GrabRequirement or 1 + final_yaoqiu_type = shangpin_type.yaoqiuleixing or 1 final_huiyuan_id = str(huiyuan_id) if huiyuan_id else '' logger.warning("佣金为0,降级为会员模式") except ValueError: - final_yaoqiu_type = shangpin_type.GrabRequirement or 1 + final_yaoqiu_type = shangpin_type.yaoqiuleixing or 1 final_huiyuan_id = str(huiyuan_id) if huiyuan_id else '' logger.warning("佣金格式错误,降级为会员模式") else: - final_yaoqiu_type = shangpin_type.GrabRequirement or 1 + final_yaoqiu_type = shangpin_type.yaoqiuleixing or 1 final_huiyuan_id = str(huiyuan_id) if huiyuan_id else '' logger.info(f"会员模式: 类型={final_yaoqiu_type}")