Explorar o código

服务工单绑定经纬度

whitefang %!s(int64=2) %!d(string=hai) anos
pai
achega
d87ddd8ab8
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      app/api/logic/ServiceOrderLogic.php

+ 3 - 1
app/api/logic/ServiceOrderLogic.php

@@ -102,7 +102,9 @@ class ServiceOrderLogic extends BaseLogic
                 'service_fee' => $goods['service_fee'],
                 'work_pay_status'=>WorkEnum::UN_PAY_STATUS,
                 'appointment_time' => strtotime($params['appointment_time']),
-                'user_id'=>$params['user_id']
+                'user_id'=>$params['user_id'],
+                'lon'=>!empty($params['lon'])?$params['lon']:0,
+                'lat'=>!empty($params['lat'])?$params['lat']:0,
             ];
 
             //判断是否是加单