|
@@ -154,6 +154,9 @@ Class Manage
|
|
if ($v['fdate']) {
|
|
if ($v['fdate']) {
|
|
$fdate = date('Y-m-d H:i',$v['fdate']);
|
|
$fdate = date('Y-m-d H:i',$v['fdate']);
|
|
}
|
|
}
|
|
|
|
+ if($v['status']>=7) {
|
|
|
|
+ $v['price'] = 0;
|
|
|
|
+ }
|
|
$refund_status = '';
|
|
$refund_status = '';
|
|
$refund_cdate = '';
|
|
$refund_cdate = '';
|
|
$refund_cash = '';
|
|
$refund_cash = '';
|
|
@@ -242,9 +245,9 @@ Class Manage
|
|
// print_R($goods_info);die;
|
|
// print_R($goods_info);die;
|
|
if ($goods_info['price_type'] > 2 && isset($goods_info['goods']) && is_array($goods_info['goods'])) {
|
|
if ($goods_info['price_type'] > 2 && isset($goods_info['goods']) && is_array($goods_info['goods'])) {
|
|
$dj = $this->danjia($goods_info['goods']);
|
|
$dj = $this->danjia($goods_info['goods']);
|
|
- $heji = 0;
|
|
|
|
|
|
+ // $heji = 0;
|
|
|
|
|
|
- $heji = $this->total($goods,$v1['num']);
|
|
|
|
|
|
+ // $heji = $this->total($goods,$v1['num']);
|
|
|
|
|
|
foreach ($goods_info['goods'] as $key => $val) {
|
|
foreach ($goods_info['goods'] as $key => $val) {
|
|
$dnum = round($val['num']*$v1['num'],2);
|
|
$dnum = round($val['num']*$v1['num'],2);
|
|
@@ -261,12 +264,11 @@ Class Manage
|
|
|
|
|
|
if ($v['card_code_cash'] && $v['card_code_cash']>0){
|
|
if ($v['card_code_cash'] && $v['card_code_cash']>0){
|
|
$card_price = round(($v['card_code_cash']/$v['oprice']*$goods_price),2);
|
|
$card_price = round(($v['card_code_cash']/$v['oprice']*$goods_price),2);
|
|
- // round(($v['card_code_cash']/$v['oprice']*($val['price']*$dnum)),2);
|
|
|
|
} else {
|
|
} else {
|
|
$card_price = 0;
|
|
$card_price = 0;
|
|
}
|
|
}
|
|
$wallet_price = round(($v['wallet_cash']/$v['oprice']*$goods_price),2);
|
|
$wallet_price = round(($v['wallet_cash']/$v['oprice']*$goods_price),2);
|
|
- // round(($v['wallet_cash']/$v['oprice']*($val['price']*$dnum)),2);
|
|
|
|
|
|
+
|
|
$goodsfu = 0;
|
|
$goodsfu = 0;
|
|
if ($v1['discount_id']<=0) {
|
|
if ($v1['discount_id']<=0) {
|
|
$youhui = 0;
|
|
$youhui = 0;
|