From 6a3ead8b4655d52f906b7631bd12774e8beb5752 Mon Sep 17 00:00:00 2001 From: jingrow Date: Sat, 9 Aug 2025 23:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=97=B6=E5=A2=9E=E5=8A=A0=E6=9B=B4=E6=96=B0?= =?UTF-8?q?plan=5Ftype=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jcloud/api/aliyun_server_light.py | 5 +++++ 1 file changed, 5 insertions(+) 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'):