BUGFIX:画布存在minioUrl为空的情况,此时不处理minio地址
This commit is contained in:
@@ -899,7 +899,7 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
for (int j = 0; j < objectJSONArrayLevel2.size(); j++) {
|
for (int j = 0; j < objectJSONArrayLevel2.size(); j++) {
|
||||||
JSONObject jsonObjectLevel2 = objectJSONArrayLevel2.getJSONObject(j);
|
JSONObject jsonObjectLevel2 = objectJSONArrayLevel2.getJSONObject(j);
|
||||||
String typeGroup = jsonObjectLevel2.getString("type");
|
String typeGroup = jsonObjectLevel2.getString("type");
|
||||||
if (typeGroup.equals("image")) {
|
if (typeGroup.equals("image") && !StringUtil.isNullOrEmpty(jsonObjectLevel2.getString("minioUrl"))) {
|
||||||
String minioUrl = jsonObjectLevel2.getString("minioUrl");
|
String minioUrl = jsonObjectLevel2.getString("minioUrl");
|
||||||
jsonObjectLevel2.put("src", minioUtil.getPreSignedUrl(minioUrl, 24 * 60));
|
jsonObjectLevel2.put("src", minioUtil.getPreSignedUrl(minioUrl, 24 * 60));
|
||||||
}
|
}
|
||||||
@@ -936,7 +936,7 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
for (int j = 0; j < objectJSONArrayLevel2.size(); j++) {
|
for (int j = 0; j < objectJSONArrayLevel2.size(); j++) {
|
||||||
JSONObject jsonObjectLevel2 = objectJSONArrayLevel2.getJSONObject(j);
|
JSONObject jsonObjectLevel2 = objectJSONArrayLevel2.getJSONObject(j);
|
||||||
String typeGroup = jsonObjectLevel2.getString("type");
|
String typeGroup = jsonObjectLevel2.getString("type");
|
||||||
if (typeGroup.equals("image")) {
|
if (typeGroup.equals("image") && !StringUtil.isNullOrEmpty(jsonObjectLevel2.getString("minioUrl"))) {
|
||||||
String minioUrl = jsonObjectLevel2.getString("minioUrl");
|
String minioUrl = jsonObjectLevel2.getString("minioUrl");
|
||||||
jsonObjectLevel2.put("src", minioUtil.getPreSignedUrl(minioUrl, 24 * 60));
|
jsonObjectLevel2.put("src", minioUtil.getPreSignedUrl(minioUrl, 24 * 60));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user