云立方接口

This commit is contained in:
苏竹红
2024-04-28 17:02:44 +08:00
parent 7785f56ef2
commit c7be552149

View File

@@ -30,9 +30,9 @@ public class YlfServiceImpl implements YlfService {
@Override
public DecorationDTO getDecoration(Long id) {
url = String.format("%s%d", url, id);
String detailUrl = String.format("%s%d", url, id);
try {
String forObject = httpRestTemplateService.getForObject(url, String.class, new HashMap<>());
String forObject = httpRestTemplateService.getForObject(detailUrl, String.class, new HashMap<>());
Integer status = (Integer) JSONObject.parseObject(forObject, JSONObject.class).get("status");
if (status != 200){
log.info("获取云立方装修公司信息失败,id:{}",id);