wupengfei 2 år sedan
förälder
incheckning
79ea338ca7
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      application/api/controller/WashManage.php

+ 3 - 1
application/api/controller/WashManage.php

@@ -141,10 +141,12 @@ class WashManage extends Base
             $v['buy_num']  = $goods_column[$v['id']]['num'];
             $price_total = bcadd($v['order_price'],$price_total,2);
         });
+        $postage = sysconf('postage');
         $address = DeliveryAddress::field('id,pro_name,city_name,county_name,mer_name,detail,phone,name')->where('user_id',$this->user_id)->where('is_mr',1)->find();
         $this->success('ok',[
             'list'=>$list,
-            'price_total'=>$price_total,
+            'price_total'=> bcadd($price_total,$postage,2),
+            'postage'=>$postage,
             'total_num'=>array_sum(array_column($goods_data,'num')),
             'address' => $address ? $address->toArray() : null,
         ]);