...
|
...
|
@@ -54,7 +54,8 @@ class Cart extends Api |
|
|
})
|
|
|
*/
|
|
|
public function getCartNum(){
|
|
|
$this->success(__('成功'),$this->model->where(['user_id'=>$this->auth->id,'isbuynow'=>'0'])->sum('goods_num'));
|
|
|
$total_num = $this->model->where(['user_id'=>$this->auth->id,'isbuynow'=>'0'])->sum('goods_num');
|
|
|
$this->success(__('成功'),compact('total_num'));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|