From 15eb7bf63cc857f77329f00798277514d8bb6ee0 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期五, 20 三月 2026 11:56:57 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/Robotaxi

---
 xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpUserFeedbackServiceImpl.java |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpUserFeedbackServiceImpl.java b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpUserFeedbackServiceImpl.java
index 93848b5..e383204 100644
--- a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpUserFeedbackServiceImpl.java
+++ b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpUserFeedbackServiceImpl.java
@@ -84,14 +84,16 @@
             String feedbackPictures = xpUserFeedbackVO.getFeedbackPictures();
             if (StringUtils.isNotBlank(feedbackPictures)) {
                 JSONArray jsonArray = JSONArray.parseArray(feedbackPictures);
-                for (Object o : jsonArray) {
-                    JSONObject jsonObject = (JSONObject)o;
+                for (int i = 0; i < jsonArray.size(); i++) {
+                    JSONObject jsonObject = jsonArray.getJSONObject(i);
+                    if (Objects.isNull(jsonObject)) {
+                        continue;
+                    }
                     String downloadUrl = null;
                     try {
-                        // 1
                         downloadUrl = aliOssService.getDownloadUrl(jsonObject.getString("id"), jsonObject.getString("name"), true);
                     } catch (UnsupportedEncodingException e) {
-                        throw new RuntimeException(e);
+                        log.error("获取图片下载地址失败", e);
                     }
                     jsonObject.put("url", downloadUrl);
                 }

--
Gitblit v1.7.1