dever 3 years ago
parent
commit
cf10b21577
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/mshop/lib/Buy.php

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

@@ -797,13 +797,12 @@ class Buy
 
                     $price = $order['price'] - $price;
                     $num = $order['num'] - $num;
-                    Dever::db('shop/buy_order')->update(array('where_id' => $order['id'], 'status' => 8, 'price' => $price, 'num' => $num));
+                    Dever::db('shop/buy_order')->update(array('where_id' => $order['id'], 'price' => $price, 'num' => $num));
                     Dever::load('shop/lib/refund')->set('buy')->apply(1, $shop['id'], $order_id, false, 3, 0);
                 }
             }
         } else {
             # 没有找到,退款
-            Dever::db('shop/buy_order')->update(array('where_id' => $order['id'], 'status' => 8));
             Dever::load('shop/lib/refund')->set('buy')->apply(1, $shop['id'], $order_id, false, 3, 0);
         }