|
@@ -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';
|