dever il y a 3 ans
Parent
commit
81bc181a16
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      app/mshop/lib/Buy.php

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

@@ -798,12 +798,12 @@ class Buy
                     $price = $order['price'] - $price;
                     $num = $order['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);
+                    Dever::load('shop/lib/refund')->set('buy')->apply(1, $shop['id'], $order_id, false, 3, 0, '供货商库存不足');
                 }
             }
         } else {
             # 没有找到,退款
-            Dever::load('shop/lib/refund')->set('buy')->apply(1, $shop['id'], $order_id, false, 3, 0);
+            Dever::load('shop/lib/refund')->set('buy')->apply(1, $shop['id'], $order_id, false, 3, 0, '供货商库存不足');
         }
 
         return 'ok';