云立方接口异常

This commit is contained in:
苏竹红
2024-05-14 15:23:03 +08:00
parent a973ef9364
commit 3f11ca6697

View File

@@ -41,7 +41,7 @@ public class YlfServiceImpl implements YlfService {
if (status != 200) {
String msg = (String) JSONObject.parseObject(forObject, JSONObject.class).get("msg");
log.info("获取云立方装修公司信息失败,id:{}", id);
throw new ServiceException(ErrorCodeEnum.YLF_ERROR,msg);
throw new ServiceException(msg);
}
Object data = JSONObject.parseObject(forObject, JSONObject.class).get("data");
if (data == null) {
@@ -53,7 +53,7 @@ public class YlfServiceImpl implements YlfService {
return list.get(0);
}
} catch (Exception e) {
throw new ServiceException(((ServiceException)e).getErrorMessage());
throw new ServiceException(ErrorCodeEnum.YLF_ERROR,((ServiceException)e).getErrorMessage());
}
return null;
}
@@ -73,7 +73,7 @@ public class YlfServiceImpl implements YlfService {
if (status != 200) {
log.info("获取云立方装修公司信息失败,storeNum:{}", storeNum);
String msg = (String) jsonObject.get("msg");
throw new ServiceException(ErrorCodeEnum.YLF_ERROR,msg);
throw new ServiceException(msg);
}
JSONObject data = jsonObject.getJSONObject("data");
log.info("CoolStoreStartFlowServiceImpl#getOrder,jsonObject:{}", jsonObject);
@@ -95,7 +95,7 @@ public class YlfServiceImpl implements YlfService {
}
} catch (Exception e) {
log.info("调用云立方获取项目列表异常,getProjectList error:{}", e);
throw new ServiceException(((ServiceException)e).getErrorMessage());
throw new ServiceException(ErrorCodeEnum.YLF_ERROR,((ServiceException)e).getErrorMessage());
}
return null;