处理取消收藏的错误
This commit is contained in:
parent
42adea8ac8
commit
996ed2d104
@ -181,15 +181,11 @@ class UserRelationRepository extends BaseRepository
|
||||
{
|
||||
if ($type == 10) {
|
||||
app()->make(MerchantRepository::class)->decCareCount($ids);
|
||||
$type_id = $ids;
|
||||
} else {
|
||||
foreach ($ids as $id) {
|
||||
$spu = $this->getSpu(['type_id' => $id, 'type' => $type]);
|
||||
$type_id[] = $spu->spu_id;
|
||||
}
|
||||
$type = 1;
|
||||
app()->make(ProductRepository::class)->decCareCount($ids);
|
||||
}
|
||||
$type_id = $ids;
|
||||
return $this->dao->search(['uid' => $uid,'type' => $type])->where('type_id','in',$type_id)->delete();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user