likang před 2 roky
rodič
revize
6f97b10217
2 změnil soubory, kde provedl 5 přidání a 7 odebrání
  1. 4 5
      .env
  2. 1 2
      catch/tag_history/controller/TagHistory.php

+ 4 - 5
.env

@@ -7,10 +7,10 @@ DEFAULT_TIMEZONE = Asia/Shanghai
 DOMAIN = http://app
 [DATABASE]
 TYPE = mysql
-HOSTNAME = rm-bp1h3uqkzy66ckt8yro.mysql.rds.aliyuncs.com
-DATABASE = station_label_test
-USERNAME = dev
-PASSWORD = 711e7D69f9d0c3f1
+HOSTNAME = 127.0.0.1
+DATABASE = station
+USERNAME = root
+PASSWORD = 123456
 HOSTPORT = 3306
 CHARSET = utf8mb4
 DEBUG = true
@@ -24,6 +24,5 @@ SELECT = 0
 [LANG]
 default_lang = zh-cn
 
-
 [JWT]
 SECRET=2e06b643e36b27b2899ff4fea0c7ee2f

+ 1 - 2
catch/tag_history/controller/TagHistory.php

@@ -103,7 +103,7 @@ class TagHistory extends CatchController
             $list[$key]['rssi'] = $da['rssi'];
             $list[$key]['addTime'] = date('Y-m-d H:i:s', $value['addTime']);
             $list[$key]['time'] = date('Y-m-d H:i:s', $da['time']);
-            $list[$key]['id'] = $da['move'];
+            $list[$key]['move'] = $da['move'];
         }
         return CatchResponse::success($list);
     }
@@ -138,7 +138,6 @@ class TagHistory extends CatchController
     {
         return CatchResponse::success($this->tagHistoryModel->updateBy($id, $request->post()));
     }
-
     /**
      * 删除
      * @time 2022年08月12日 11:31