wesmiler 1 일 전
부모
커밋
d4758b2007
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Models/GoodsCommentModel.php
  2. 1 0
      app/Services/Api/CommentService.php

+ 1 - 1
app/Models/GoodsCommentModel.php

@@ -40,7 +40,7 @@ class GoodsCommentModel extends BaseModel
         $value = $value? get_images_preview($value,'url',2) : [];
         return $value;
     }
-    
+
     /**
      * 发布用户
      * @return \Illuminate\Database\Eloquent\Relations\HasOne

+ 1 - 0
app/Services/Api/CommentService.php

@@ -157,6 +157,7 @@ class CommentService extends BaseService
         }
 
         $goodsIds = array_column($orderGoods,'goods_id');
+        $albums = $albums? get_format_images($albums, '') : '';
         $data = [
             'goods_ids'=>implode(',',$goodsIds).',',
             'order_id'=>$orderId,