Commit 8e291bdc authored by zhoumaotao's avatar zhoumaotao

oa接口调整

parent 751a5aa7
......@@ -334,8 +334,8 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
ResponseEntity<String> exchange = restTemplate.exchange(url, HttpMethod.POST, httpEntity, String.class);
String body = exchange.getBody();
logger.info("返回信息:"+body);
if(StringUtils.isNotEmpty(body)){
JSONObject jsonObject = JSONObject.parseObject(body);
JSONObject jsonObject = JSONObject.parseObject(body);
if(StringUtils.isNotEmpty(body) && !StringUtils.equals(jsonObject.getString("status"),"0")){
JSONArray jsonArray = jsonObject.getJSONArray("result");
for (int j= 0;j<jsonArray.size();j++){
JSONObject jsonObjectOne=jsonArray.getJSONObject(j);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment