mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-07 23:57:20 +08:00
fix 有bg没有正确返回image的bug
This commit is contained in:
@@ -89,6 +89,9 @@ public class IndexServiceImpl implements IIndexService {
|
||||
if (StringUtils.isNotNull(tempJSON.getString("image"))) {
|
||||
tempJSON.put("image", UrlUtils.toAbsoluteUrl(tempJSON.getString("image")));
|
||||
}
|
||||
if (StringUtils.isNotNull(tempJSON.getString("bg"))) {
|
||||
tempJSON.put("bg", UrlUtils.toAbsoluteUrl(tempJSON.getString("bg")));
|
||||
}
|
||||
if (StringUtils.isNotNull(tempJSON.getString("qrcode"))) {
|
||||
tempJSON.put("qrcode", UrlUtils.toAbsoluteUrl(tempJSON.getString("qrcode")));
|
||||
}
|
||||
@@ -97,6 +100,7 @@ public class IndexServiceImpl implements IIndexService {
|
||||
for (int j = 0; j < tempArray.size(); j++) {
|
||||
JSONObject tempImageJson = tempArray.getJSONObject(j);
|
||||
tempImageJson.put("image", UrlUtils.toAbsoluteUrl(tempImageJson.getString("image")));
|
||||
tempImageJson.put("bg", UrlUtils.toAbsoluteUrl(tempImageJson.getString("bg")));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -138,6 +142,9 @@ public class IndexServiceImpl implements IIndexService {
|
||||
if (StringUtils.isNotNull(tempJSON.getString("image"))) {
|
||||
tempJSON.put("image", UrlUtils.toAbsoluteUrl(tempJSON.getString("image")));
|
||||
}
|
||||
if (StringUtils.isNotNull(tempJSON.getString("bg"))) {
|
||||
tempJSON.put("bg", UrlUtils.toAbsoluteUrl(tempJSON.getString("bg")));
|
||||
}
|
||||
if (StringUtils.isNotNull(tempJSON.getString("qrcode"))) {
|
||||
tempJSON.put("qrcode", UrlUtils.toAbsoluteUrl(tempJSON.getString("qrcode")));
|
||||
}
|
||||
@@ -146,6 +153,7 @@ public class IndexServiceImpl implements IIndexService {
|
||||
for (int j = 0; j < tempArray.size(); j++) {
|
||||
JSONObject tempImageJson = tempArray.getJSONObject(j);
|
||||
tempImageJson.put("image", UrlUtils.toAbsoluteUrl(tempImageJson.getString("image")));
|
||||
tempImageJson.put("bg", UrlUtils.toAbsoluteUrl(tempImageJson.getString("bg")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user