云立方接口
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user