获取本地生活购物车商品
This commit is contained in:
parent
2be66d1a84
commit
05482384f9
@ -69,7 +69,10 @@ class LocalStoreGoodsCartLogic extends Logic
|
||||
->field('c.id, c.item_id, c.goods_num, g.id as lsg_id, g.title, g.price')
|
||||
->append(['pic', 'item'])
|
||||
->select();
|
||||
return $cart;
|
||||
if ($cart) {
|
||||
return $cart->toArray();
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
public static function cartNum($post, $user_id)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user