xxxrrrdddd 2 年之前
父節點
當前提交
588d84853b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/service/UserOrderService.php

+ 1 - 1
application/service/UserOrderService.php

@@ -117,7 +117,7 @@ class UserOrderService{
             $this->order['distance']=tm()->getDistance(
                 [$this->order['from_longitude'],$this->order['from_latitude']],
                 [$this->order['to_longitude'],$this->order['to_latitude']]
-            );
+            )['distance'];
         }
         $this->recordLog("距离:{$this->order['distance']}km");
     }