宝体数据调用接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
693 B

<?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();
}
}