1.提交缺失的东西
This commit is contained in:
@ -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('删除成功');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user