dever %!s(int64=3) %!d(string=hai) anos
pai
achega
835ab5f76c
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      app/mshop/lib/Buy.php
  2. 1 1
      app/shop/lib/Sell.php

+ 1 - 1
app/mshop/lib/Buy.php

@@ -976,7 +976,7 @@ class Buy
     {
         $info['type'] = 1;
 
-        $goods = Dever::db('shop/buy_order_goods')->select(array('order_id' => $info['id']));
+        $goods = Dever::db('shop/buy_order_goods')->select(array('order_id' => $info['id'], 'status' => 1));
 
         $shop = Dever::db('shop/info')->find($info['type_id']);
 

+ 1 - 1
app/shop/lib/Sell.php

@@ -1696,7 +1696,7 @@ class Sell
     {
         $info['type'] = 1;
 
-        $goods = Dever::db('shop/sell_order_goods')->select(array('order_id' => $info['id']));
+        $goods = Dever::db('shop/sell_order_goods')->select(array('order_id' => $info['id'], 'status' => 1));
 
         $shop = Dever::db('shop/info')->find($info['shop_id']);