diff --git a/app/api/controller/CartController.php b/app/api/controller/CartController.php index 72c495e..5a3e757 100644 --- a/app/api/controller/CartController.php +++ b/app/api/controller/CartController.php @@ -38,10 +38,10 @@ class CartController extends BaseApiController public function add() { $post = $this->request->post(); - $check = $this->validate($post, 'app\api\validate\CartValidate.add'); - if (true !== $check) { - return $this->fail($check); - } +// $check = $this->validate($post, 'app\api\validate\CartValidate.add'); +// if (true !== $check) { +// return $this->fail($check); +// } $res = CartLogic::add($post['item_id'], $post['goods_num'], $this->userId); if ($res === true) { return $this->success('加入成功');