diff --git a/app/portal/controller/ShopcartController.php b/app/portal/controller/ShopcartController.php index bf0745d..67ddd3b 100644 --- a/app/portal/controller/ShopcartController.php +++ b/app/portal/controller/ShopcartController.php @@ -87,8 +87,9 @@ class ShopcartController extends WeChatBaseController{ $id = $_POST['id']; $data = Db::name('shopping_cart') -> where('id',$id) -> find(); if($data['book_num']<200){ - Db::name('shopping_cart') -> where('id',$id) -> setInc('book_num'); + $res = Db::name('shopping_cart') -> where('id',$id) -> setInc('book_num'); } + dump($res); return true; }