wesmiler 1 giorno fa
parent
commit
a06c34ee04
1 ha cambiato i file con 1 aggiunte e 6 eliminazioni
  1. 1 6
      app/Services/Api/CommentService.php

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

@@ -79,7 +79,6 @@ class CommentService extends BaseService
             ->where(function ($query) use($params){
 
                 $status = isset($params['status'])? $params['status'] : 0;
-                $type = isset($params['type'])? $params['type'] : 0;
                 $userId = isset($params['user_id'])? $params['user_id'] : 0;
                 $goodsId = isset($params['goods_id'])? $params['goods_id'] : 0;
                 $orderId = isset($params['order_id'])? $params['order_id'] : 0;
@@ -97,11 +96,7 @@ class CommentService extends BaseService
                 }
 
                 if($goodsId>0){
-                    $query->where('goods_comments.goods_ids','like',"{$goodsId},");
-                }
-
-                if($type>0){
-                    $query->where('goods_comments.type',$type);
+                    $query->where('goods_comments.goods_ids','like',"%{$goodsId},%");
                 }
             })->where($where);
     }