Browse Source

修改git push

tongshanglei 2 years ago
parent
commit
33903e74f7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      catch/device/controller/Station.php

+ 2 - 1
catch/device/controller/Station.php

@@ -74,7 +74,8 @@ class Station extends CatchController
         $gcjLoc = \algorithm\Geometry::wgsTOgcj((float)$params['latitude'],(float)$params['longitude']);
         $params['longitude']=$gcjLoc['lng'];
         $params['latitude']=$gcjLoc['lat'];
-        $params['update_id']=$id;
+        $shortcode=$this->stationModel->where('id',$id)->value('shortcode');
+        $params['update_code']=$shortcode;
         $params['DATA_TYPE']='station_update';
         pushDataToRedisList($params);
         return CatchResponse::success($this->stationModel->updateBy($id, $params));