WIN-2308041133\Administrator 2 days ago
parent
commit
8bc682a220
2 changed files with 7 additions and 1 deletions
  1. 3 1
      app/api/controller/User.php
  2. 4 0
      app/system/controller/Contract.php

+ 3 - 1
app/api/controller/User.php

@@ -1222,7 +1222,9 @@ class User extends BaseController
             ['period',0], // 周期天数
             ['start_time',''], // 开始时间
             ['end_time',''], // 结束时间
-            ['mark',''] //备注
+            ['mark',''], //备注
+            ['longitude',''], //经度
+            ['latitude',''] //纬度
 //            ['uid_img','']  //甲方签名图片路径
 //            ['to_phone',''].
 //            ['to_address',''],

+ 4 - 0
app/system/controller/Contract.php

@@ -144,6 +144,8 @@ class Contract extends BaseController
             "create_time",
             "delete_time",
             "check_time",
+            "longitude",
+            "latitude"
 //            ['start_time', 'start_time', function ($item) {
 //                return empty($item) ? "-" : date('Y-m-d H:i:s', $item);
 //            }],
@@ -204,6 +206,8 @@ class Contract extends BaseController
             'create_time' =>$adminInfo['create_time'],
             'delete_time' =>$adminInfo['delete_time'],
             'check_time' =>$adminInfo['check_time'],
+            'longitude' =>$adminInfo['longitude'],
+            'latitude' => $adminInfo['latitude'],
 //            'start_time' => date('Y-m-d H:i:s', $adminInfo['start_time']),
 //            'end_time' => date('Y-m-d H:i:s', $adminInfo['end_time']),
 //            'create_time' => date('Y-m-d H:i:s', $adminInfo['create_time']),