dever há 3 anos atrás
pai
commit
c588f0eb63
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/shop/src/Buy.php

+ 1 - 1
app/shop/src/Buy.php

@@ -164,7 +164,7 @@ class Buy extends Core
             $where = array();
             $where['where_id'] = $info['id'];
             if ($num <= 0) {
-                $state = Dever::db('shop/cart')->delete($where);
+                $state = Dever::db('shop/cart')->delete($info['id']);
             } else {
                 $where['status'] = $status;
                 $where['num'] = $num;