WIP
parent
2c4d42c2f2
commit
6aa576e8d9
|
|
@ -46,7 +46,7 @@ class ProductSkuController extends Controller
|
|||
$sku = ProductSku::findOrFail($id);
|
||||
|
||||
// 是否收藏商品
|
||||
$isCollected = $user?->skuFavorites()->where('sku_id', $sku->id)->exists();
|
||||
$isCollected = (bool) $user?->skuFavorites()->where('sku_id', $sku->id)->exists();
|
||||
|
||||
if (! $sku->isOnline()) {
|
||||
return response()->json([
|
||||
|
|
|
|||
Loading…
Reference in New Issue