Пример #1
0
 public function del()
 {
     $cartId = (int) $this->getParam('cartId', 0);
     if ($cartId <= 0) {
         $this->ajaxReturn(ERR_PARAMS_ERROR, '参数错误');
         return;
     }
     UserCartModel::delCart($this->userId(), $cartId);
     $this->ajaxReturn(0, '');
 }