6
0
Fork 0
release
李静 2021-12-11 11:54:37 +08:00
parent 2c4d42c2f2
commit 6aa576e8d9
1 changed files with 1 additions and 1 deletions

View File

@ -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([