浏览代码

修改代码

fuyu 6 年之前
父节点
当前提交
f219da7c54
共有 1 个文件被更改,包括 4 次插入1 次删除
  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