wesmiler 1 gün önce
ebeveyn
işleme
d4758b2007

+ 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,