Commit 9d49011c authored by 曹盼盼's avatar 曹盼盼

去掉设备详情中附件的url拼接图片服务器地址

parent 5167791c
...@@ -332,7 +332,7 @@ public class TzsAppService { ...@@ -332,7 +332,7 @@ public class TzsAppService {
JSONObject object = JSON.parseObject(JSON.toJSONString(obj)); JSONObject object = JSON.parseObject(JSON.toJSONString(obj));
if (!ValidationUtil.isEmpty(object)) { if (!ValidationUtil.isEmpty(object)) {
object.getString("url"); object.getString("url");
object.put("url", minioPath + object.getString("url")); object.put("url",object.getString("url"));
json.add(object); json.add(object);
} }
} }
...@@ -378,7 +378,7 @@ public class TzsAppService { ...@@ -378,7 +378,7 @@ public class TzsAppService {
Map<String, String> map = date.getResult(); Map<String, String> map = date.getResult();
Iterator<String> it = map.keySet().iterator(); Iterator<String> it = map.keySet().iterator();
String urlString = it.next(); String urlString = it.next();
jsonObject.put("fileUrl", minioPath + urlString); jsonObject.put("fileUrl", urlString);
jsonObject.put("fileName", code); jsonObject.put("fileName", code);
} }
} catch (IOException e) { } catch (IOException e) {
......
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