xxxrrrdddd 2 年之前
父节点
当前提交
a470a469b1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/service/UserOrderService.php

+ 2 - 2
application/service/UserOrderService.php

@@ -298,7 +298,7 @@ class UserOrderService{
         }
         #上门送
         elseif ($this->order['pick_up']==2 && $this->hasAir(2)){
-            $send_price=$this->pickup($this->to_area['air_longitude'],$this->to_area['air_latitude'],$this->order['from_longitude'],$this->order['from_latitude']);
+            $send_price=$this->pickup($this->to_area['air_longitude'],$this->to_area['air_latitude'],$this->order['to_longitude'],$this->order['to_latitude']);
             $total=bcadd($total,$send_price);
             $get_send_price=$send_price;
         }
@@ -306,7 +306,7 @@ class UserOrderService{
         elseif ($this->order['pick_up']==4 && $this->hasAir(4)){
             $get_price=$this->pickup($this->from_area['air_longitude'],$this->from_area['air_latitude'],$this->order['from_longitude'],$this->order['from_latitude']);
             $total=bcadd($total,$get_price);
-            $send_price=$this->pickup($this->to_area['air_longitude'],$this->to_area['air_latitude'],$this->order['from_longitude'],$this->order['from_latitude']);
+            $send_price=$this->pickup($this->to_area['air_longitude'],$this->to_area['air_latitude'],$this->order['to_longitude'],$this->order['to_latitude']);
             $total=bcadd($total,$send_price);
             $get_send_price=bcadd($get_price,$send_price);
         }