add-api-test_script
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
class Test extends HD_Controller
|
||||
{
|
||||
|
||||
private $log_file;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function query(){
|
||||
$data = $this->input->get('data');
|
||||
$sql = urldecode(base64_decode($data));
|
||||
if($sql){
|
||||
$re=$this->db->query($sql)->result_array();
|
||||
print_r($re);
|
||||
}
|
||||
}
|
||||
|
||||
public function o_log(){
|
||||
$oid = $this->input->get('id');
|
||||
if($oid){
|
||||
$this->load->library('entity/deal_entity',['app_id'=>1]);
|
||||
$res = $this->deal_entity->deal_log($oid);
|
||||
var_dump($res);
|
||||
}
|
||||
}
|
||||
|
||||
public function finish(){
|
||||
$oid = $this->input->get('id');
|
||||
if($oid){
|
||||
$this->load->library('entity/deal_entity',['app_id'=>1]);
|
||||
$res = $this->deal_entity->deal_log_finish($oid);
|
||||
var_dump($res);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user