Explorar el Código

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

Martin hace 5 años
padre
commit
c04452150a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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']);
         // 图片ID集
-        $detail['imageIds'] = helper::getArrayColumn($detail, 'image_id');
+        $detail['imageIds'] = helper::getArrayColumn($detail['images'], 'image_id');
         // 图片列表
         $detail['imageList'] = helper::getArrayColumn($detail['images'], 'file');
         return $detail;