更新 app/api/v1/app_valuations/app_valuations.py
This commit is contained in:
parent
a4e7fb13b6
commit
4d81edac4c
@ -354,7 +354,7 @@ async def _extract_calculation_params_b1(data: UserValuationCreate) -> Dict[str,
|
||||
# 政策乘数B13相关参数
|
||||
# 政策契合度评分P - 根据行业和资助情况计算
|
||||
# 实施阶段 - 需要转换为对应的评分
|
||||
implementation_stage_str = data.application_maturity or "成熟应用"
|
||||
implementation_stage_str = data.implementation_stage or "成熟应用"
|
||||
# 资金支持 - 需要转换为对应的评分
|
||||
funding_support_str = data.funding_status or "无资助"
|
||||
|
||||
@ -413,7 +413,7 @@ async def _extract_calculation_params_b2(data: UserValuationCreate) -> Dict[str,
|
||||
inheritor_level = data.inheritor_level or "市级传承人" # 设置默认值
|
||||
inheritor_level_coefficient = living_heritage_calculator.calculate_inheritor_level_coefficient(inheritor_level)
|
||||
|
||||
offline_sessions = int(data.offline_activities) # 线下传习次数
|
||||
offline_sessions = safe_float(data.offline_activities) # 线下传习次数
|
||||
platform_accounts_data = data.platform_accounts
|
||||
rs = {}
|
||||
for platform, info in platform_accounts_data.items():
|
||||
@ -426,7 +426,7 @@ async def _extract_calculation_params_b2(data: UserValuationCreate) -> Dict[str,
|
||||
bilibili_views = safe_float(rs.get("bilibili", None).get("likes", 0)) if rs.get("bilibili", None) else 0
|
||||
|
||||
# 跨界合作深度 品牌联名0.3,科技载体0.5,国家外交礼品1.0
|
||||
cross_border_depth = float(data.cooperation_depth)
|
||||
cross_border_depth = cross_border_depth_dict(data.cooperation_depth)
|
||||
|
||||
# 纹样基因值B22相关参数
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user