作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

获取购物车商品总数

... ... @@ -54,7 +54,7 @@ class Cart extends Api
})
*/
public function getCartNum(){
$this->success(__('成功'),$this->model->where(['user_id'=>$this->user['id'],'isbuynow'=>'0'])->sum('goods_num'));
$this->success(__('成功'),$this->model->where(['user_id'=>$this->auth->id,'isbuynow'=>'0'])->sum('goods_num'));
}
/**
... ...
... ... @@ -10953,7 +10953,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-08-15 17:20:48 </div>
Generated on 2020-08-15 17:26:27 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">我的网站</a>
</div>
... ...