|
|
@@ -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);
|
|
|
}
|