1.提交缺失的东西
This commit is contained in:
@ -68,10 +68,10 @@ class CartController extends BaseApiController
|
||||
public function del()
|
||||
{
|
||||
$post = $this->request->post();
|
||||
$check = $this->validate($post, 'app\api\validate\Cart.del');
|
||||
if (true !== $check) {
|
||||
return $this->fail($check);
|
||||
}
|
||||
// $check = $this->validate($post, 'app\api\validate\Cart.del');
|
||||
// if (true !== $check) {
|
||||
// return $this->fail($check);
|
||||
// }
|
||||
if (CartLogic::del($post['cart_id'], $this->userId)) {
|
||||
return $this->success('删除成功');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user