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