rabin 3 years ago
parent
commit
cff12665d7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      service/mail/lib/Manage.php

+ 3 - 1
service/mail/lib/Manage.php

@@ -771,15 +771,17 @@ class Manage
                 
                 $order_goods = Dever::db('shop/buy_order_goods')->select(array('order_id' => $v['id'], 'status' => 1));
                 $c_price = 0;
+                $price = 0;
                 foreach($order_goods as $k1 => $v1){
                     $goods = Dever::load('goods/lib/info')->getPayInfo($v1['goods_id'], $v1['sku_id']);
+                    $price = $goods['price'];
                     if ($goods['c_price'] && $goods['c_price'] >= 0) {
                         $c_price += $goods['c_price'] * $v1['num'];
                     } else {
                         $no_t[$v1['goods_id'] . '_' . $v1['sku_id']] = $goods['name'] . '_' . $goods['sku_name'];
                     }
                 }
-                $price = ($v['price'] + $v['record_cash'] - $c_price);
+                $price = ($price - $c_price);
                 if ($price < 0) {
                     $price = 0;
                 }