|
@@ -254,6 +254,9 @@ class Order
|
|
|
|
|
|
# 查询折扣 扣费
|
|
|
$seller_goods = Dever::db('goods', 'seller')->find(array('seller_id' => $seller_id, 'goods_id' => $goods_id, 'sku_id' => $sku_id));
|
|
|
+ if (!$seller_goods) {
|
|
|
+ $seller_goods = Dever::db('goods', 'seller')->find(array('seller_id' => $seller_id, 'goods_id' => $goods_id, 'sku_id' => -1));
|
|
|
+ }
|
|
|
|
|
|
$info = Dever::db('info', 'seller')->find($seller_id);
|
|
|
if ($seller_goods && $seller_goods['discount'] > 0) {
|