Browse Source

修改代码

fuyu 6 years ago
parent
commit
f219da7c54
1 changed files with 4 additions and 1 deletions
  1. 4 1
      application/inter/controller/Reciveremote.php

+ 4 - 1
application/inter/controller/Reciveremote.php

@@ -200,7 +200,7 @@ class Reciveremote extends Base
 //         // $db->execute(SQLServerHelp::SET_LIS_DEPARTEMT_SQL,$departemt);
 //     }
 
-    
+// }
 
     public function index()
     {
@@ -234,6 +234,9 @@ class Reciveremote extends Base
             var_dump($sql);
             // var_dump(DB::query($sql, $options)->fetchSql());
         // $db->execute(SQLServerHelp::SET_LIS_DEPARTEMT_SQL,$departemt);
+        } catch(\Exception $e) {
+            return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
+        }
     }
 
 //     select