修正了 错误字段定义
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user