1.提交缺失的东西

This commit is contained in:
2025-08-11 16:23:21 +08:00
parent bd8566b5c6
commit dd2b423e7d

View File

@ -68,10 +68,10 @@ class CartController extends BaseApiController
public function del() public function del()
{ {
$post = $this->request->post(); $post = $this->request->post();
$check = $this->validate($post, 'app\api\validate\Cart.del'); // $check = $this->validate($post, 'app\api\validate\Cart.del');
if (true !== $check) { // if (true !== $check) {
return $this->fail($check); // return $this->fail($check);
} // }
if (CartLogic::del($post['cart_id'], $this->userId)) { if (CartLogic::del($post['cart_id'], $this->userId)) {
return $this->success('删除成功'); return $this->success('删除成功');
} }