|
@@ -99,7 +99,7 @@ class Product extends Base
|
|
}
|
|
}
|
|
|
|
|
|
// 购物车数量
|
|
// 购物车数量
|
|
- $data->cart_num = (new \addons\unishop\model\Cart)->where(['user_id' => $this->auth->id])->count();
|
|
|
|
|
|
+ $data->cart_num = (new \addons\unishop\model\Cart)->where(['user_id' => $this->auth->id])->sum('number');
|
|
|
|
|
|
// 评价信息
|
|
// 评价信息
|
|
$data->evaluate_list = [];
|
|
$data->evaluate_list = [];
|