fixed cart list

This commit is contained in:
Edward Yang 2022-06-28 14:23:09 +08:00
parent d234d82792
commit a5b7cb2bb8
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ class CartService
{
public static function list($customer)
{
if (empty($customer)) {
return [];
}
$cartList = Cart::query()->where('customer_id', $customer->id)->get();
return $cartList;
}