|
@@ -325,6 +325,8 @@ class Sell
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ $info['discount_goods'] = array();
|
|
|
foreach ($info['goods'] as $k => $v) {
|
|
|
$info['goods'][$k]['info'] = Dever::load('goods/lib/info')->getPayInfo($v['goods_id'], $v['sku_id']);
|
|
|
$info['goods'][$k]['status_name'] = $goods_status[$v['status']];
|
|
@@ -346,6 +348,10 @@ class Sell
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if ($v['discount_id'] && $v['discount_id'] > 0) {
|
|
|
+ $info['discount_goods'] = $info['goods'];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if ($info['invoice_id']) {
|
|
@@ -589,7 +595,7 @@ class Sell
|
|
|
|
|
|
$card = Dever::input('card');
|
|
|
$wallet = Dever::input('wallet');
|
|
|
- if ($data['price'] > 0 && isset($data['uid']) && $data['uid'] > 0) {
|
|
|
+ if ($data['price'] > 0 && isset($data['uid']) && $data['uid'] > 0 && $data['discount_id'] <= 0) {
|
|
|
|
|
|
if ($card) {
|
|
|
|