parent
9148ac262e
commit
319fe5395b
|
|
@ -116,6 +116,23 @@ public class PcServiceImpI implements IPcService {
|
|||
articlesHostList.add(map);
|
||||
}
|
||||
|
||||
|
||||
String data = decoratePage.getData();
|
||||
JSONArray dataArray = JSONArray.parseArray(data);
|
||||
|
||||
for (int i = 0; i < dataArray.size() ; i++) {
|
||||
JSONObject dataJson = dataArray.getJSONObject(i);
|
||||
JSONArray tempArray = dataJson.getJSONArray(data);
|
||||
for (int j = 0; j < tempArray.size() ; j++) {
|
||||
JSONObject tempImageJson = tempArray.getJSONObject(j);
|
||||
|
||||
tempImageJson.put("image", UrlUtils.toAbsoluteUrl(tempImageJson.getString("image")));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
decoratePage.setData(dataArray.toJSONString());
|
||||
|
||||
indexData.put("page", decoratePage);
|
||||
indexData.put("all", articlesAllList);
|
||||
indexData.put("new", articlesNewList);
|
||||
|
|
|
|||
Loading…
Reference in New Issue