@@ -49,7 +49,7 @@ class CartModel extends BaseModel
public function cartGoods()
{
return $this->hasMany(CartModel::class, 'store_id', 'store_id')
- ->with(['goods'])
+ ->with(['goods','sku'])
->where(['status'=>1,'mark'=>1]);
}
@@ -101,7 +101,7 @@ class CartService extends BaseService
unset($where['a.status']);
- $model = $this->model->with(['store','cartGoods','sku'])
+ $model = $this->model->with(['store','cartGoods'])
->from('carts as a')
->leftJoin('goods as b', 'b.id', '=', 'a.goods_id')
->where($where)