Commit fd21c7f1 by zhiheng.zhang

图片url返回处理

parent c55973f2
...@@ -2440,9 +2440,9 @@ public class OrderServiceImpl implements Orderservice { ...@@ -2440,9 +2440,9 @@ public class OrderServiceImpl implements Orderservice {
String extInfo = orderBean.getExtInfo(); String extInfo = orderBean.getExtInfo();
if(!StringUtil.isEmpty(extInfo)){ if(!StringUtil.isEmpty(extInfo)){
JSONObject jsonObject = JSONObject.parseObject(extInfo); JSONObject jsonObject = JSONObject.parseObject(extInfo);
String imgUrls = String.valueOf(jsonObject.get("imgUlr")); JSONArray jsonArray = (JSONArray) JSONArray.parse(jsonObject.getString("imgUlr"));
if(!StringUtil.isEmpty(imgUrls)){ for(int i = 0 ;i< jsonArray.size() ;i++){
imgUrl = Arrays.asList(imgUrls.split(",")); imgUrl.add(String.valueOf(jsonArray.get(i)));
} }
} }
queryOrderByConditionsResponseVo.setImgUrl(imgUrl); queryOrderByConditionsResponseVo.setImgUrl(imgUrl);
......
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