wupengfei 2 yıl önce
ebeveyn
işleme
6718e90a73
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      application/order/controller/GoodsOrder.php

+ 1 - 1
application/order/controller/GoodsOrder.php

@@ -34,7 +34,7 @@ class GoodsOrder extends Controller
         }
         $order_stat = Db::table($this->table)->alias('o')->join('store_member u',' o.mid = u.id ','LEFT')->where($where)->field('o.pay_price')->select();
         $this->order_num = empty($order_stat) ? 0: count($order_stat);
-        $this->total_money = empty($order_stat) ? 0: array_sum(array_column($order_stat,'pay_price'));
+        $this->total_money = empty($order_stat) ? 0: bcadd(array_sum(array_column($order_stat,'pay_price')),0,2);
         $query->alias('o')
             ->field('o.* , u.name as user_name ,u.phone')
             ->join('store_member u',' o.mid = u.id ','LEFT');