diff --git a/jcloud/api/aliyun_server_light.py b/jcloud/api/aliyun_server_light.py index eaaa29b..f0e80fc 100644 --- a/jcloud/api/aliyun_server_light.py +++ b/jcloud/api/aliyun_server_light.py @@ -1557,6 +1557,11 @@ def update_server_record(instance_ids): # 更新planid server.planid = plan_id + # 直接从实例信息获取plan_type + plan_type = instance_info.get('plan_type') + if plan_type: + server.plan_type = plan_type + # 获取套餐信息来计算价格 plans_result = get_aliyun_plans(region_id) if plans_result and plans_result.get('success') and plans_result.get('data', {}).get('plans'):