Code format
This commit is contained in:
parent
2d28ca8e68
commit
1a3b7d134f
|
|
@ -65,7 +65,7 @@ class Url
|
|||
return $value->url ?? '';
|
||||
} elseif ($type == 'page') {
|
||||
if (! $value instanceof \Beike\Models\Page) {
|
||||
$page = \Beike\Models\Page::query()->find($value);
|
||||
$page = \Beike\Models\Page::query()->find($value);
|
||||
$value = $page->active ? $page : null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ class CartService
|
|||
$product = $item->product ?? null;
|
||||
if (empty($description) || empty($product)) {
|
||||
$item->delete();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue