1 changed files with 35 additions and 0 deletions
@ -0,0 +1,35 @@ |
|||||
|
<?php |
||||
|
namespace app\api\controller\xtool; |
||||
|
|
||||
|
use app\api\controller\Controller; |
||||
|
|
||||
|
use app\common\dm\Dm; |
||||
|
|
||||
|
class Xtool extends Controller |
||||
|
{ |
||||
|
// |
||||
|
public function index(){ |
||||
|
if($_GET['run']==1){ |
||||
|
$dbname = $this->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(); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue