系统设置
角色
This commit is contained in:
pan.wl.2 2024-11-04 15:38:32 +08:00
parent 9148ac262e
commit 319fe5395b
1 changed files with 17 additions and 0 deletions

View File

@ -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);