|
|
@ -157,7 +157,7 @@ public class OtherServiceImpl implements OtherService { |
|
|
|
if (data != null) { |
|
|
|
// 提取name和country |
|
|
|
name = (String) data.get("name"); |
|
|
|
country = (String) data.get("country"); |
|
|
|
country = (String) data.get("country"); |
|
|
|
|
|
|
|
// 打印获取到的数据 |
|
|
|
System.out.println("Name: " + name); |
|
|
@ -173,6 +173,8 @@ public class OtherServiceImpl implements OtherService { |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
System.out.println("Error: " + e.getMessage()); |
|
|
|
// 设置默认的 country 值 |
|
|
|
country = "Unknown"; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|