From 5b8edede4634ddfa638d5d1ec54956d2536a3ae2 Mon Sep 17 00:00:00 2001 From: JoeAllen <2494136784@qq.com> Date: Wed, 14 Oct 2026 18:14:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(aliyun):=20Token=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E8=A1=A5=E6=A0=A1=E9=AA=8C=20instance=5Fid=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E7=A9=BA=E5=80=BC=E6=8B=BC=E5=87=BA=E4=BB=A5=E7=82=B9?= =?UTF-8?q?=E5=BC=80=E5=A4=B4=E7=9A=84=E9=9D=9E=E6=B3=95=E6=8E=A5=E5=85=A5?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpui-app/src/aliyun.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gpui-app/src/aliyun.rs b/gpui-app/src/aliyun.rs index b6ae6f6..066a04a 100644 --- a/gpui-app/src/aliyun.rs +++ b/gpui-app/src/aliyun.rs @@ -154,6 +154,10 @@ impl AliyunPreset { { return Err("Group ID、AccessKey ID 与 AccessKey Secret 不能为空".into()); } + // 空 instance_id 会拼出 ".mqtt.aliyuncs.com" 这样的非法接入点,DNS 报错难懂 + if self.instance_id.trim().is_empty() { + return Err("Instance ID 不能为空".into()); + } // 空 DeviceName 会拼出 "group@@@" 这样的非法 clientId,服务端报错难懂 if self.device_id.trim().is_empty() { return Err("Device ID 不能为空".into());