tongshanglei %!s(int64=2) %!d(string=hai) anos
pai
achega
d2a4e5009b
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      catch/map/controller/RouteMap.php

+ 10 - 0
catch/map/controller/RouteMap.php

@@ -659,6 +659,16 @@ class RouteMap extends CatchController
             oci_execute($vtid);
             oci_fetch($vtid);
             $cond['RF_FLAGID']=['=',$rfid_sn];
+            if(!$rfid_sn){
+                $response=[
+                    'code'=>10000,
+                    'message'=>'查询成功',
+                    'data'=>[],
+                    'current'=>isset($params['page'])?(int)$params['page']:1,
+                    'limit'=>isset($params['limit'])?(int)$params['limit']:10,
+                ];
+                return $response;
+            }
         }
         $start_time = date('Y-m-d 00:00:00',time());
         $end_time = date('Y-m-d 23:59:59',time());