xxxrrrdddd %!s(int64=2) %!d(string=hai) anos
pai
achega
588d84853b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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");
     }