From 16a282a3adb076ff4287a1fe3cba9cef472cc86e Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Tue, 1 Aug 2023 15:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=A9=BA=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/controller/xtool/Xtool.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 source/application/api/controller/xtool/Xtool.php diff --git a/source/application/api/controller/xtool/Xtool.php b/source/application/api/controller/xtool/Xtool.php new file mode 100644 index 0000000..72edb4c --- /dev/null +++ b/source/application/api/controller/xtool/Xtool.php @@ -0,0 +1,35 @@ +request->param('dname'); + //return $dbname; + $dm = new Dm; + $dm->truncate($dbname); + return $this->success(); + + //$dm->truncate('bt_passenger_flow'); + // + //$dm->truncate('bt_passenger_flow_all'); + // + //$dm->truncate('bt_passenger_monitor_group'); + // + //$dm->truncate('bt_video'); + } + } + + // + public function sc(){ + $dm = new Dm; + $dm->insert('bt_config',['key'=>'threshold','value'=>'10000']); + $this->renderSuccess(); + } +}