tongshanglei 2 gadi atpakaļ
vecāks
revīzija
a454511ef9
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8 0
      catch/map/controller/RouteMap.php

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

@@ -754,6 +754,14 @@ class RouteMap extends CatchController
             oci_execute($vtid);
             oci_fetch($vtid);
             $cond['RF_FLAGID']=['=',$rfid_sn];
+            if(!$rfid_sn){
+                $response=[
+                    'code'=>10000,
+                    'message'=>'查询成功',
+                    'count'=>0
+                ];
+                return $response;
+            }
         }
         $start_time = date('Y-m-d 00:00:00',time());
         $end_time = date('Y-m-d 23:59:59',time());