Sfoglia il codice sorgente

修复:后台编辑商品评价时清空图片

Martin 5 anni fa
parent
commit
c04452150a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/store/model/Comment.php

+ 1 - 1
app/store/model/Comment.php

@@ -84,7 +84,7 @@ class Comment extends CommentModel
         // 评价详情
         // 评价详情
         $detail = static::detail($commentId, ['images.file']);
         $detail = static::detail($commentId, ['images.file']);
         // 图片ID集
         // 图片ID集
-        $detail['imageIds'] = helper::getArrayColumn($detail, 'image_id');
+        $detail['imageIds'] = helper::getArrayColumn($detail['images'], 'image_id');
         // 图片列表
         // 图片列表
         $detail['imageList'] = helper::getArrayColumn($detail['images'], 'file');
         $detail['imageList'] = helper::getArrayColumn($detail['images'], 'file');
         return $detail;
         return $detail;