From 9383e9033d25e1ab86c8e95fd617468f2b9b8b1f Mon Sep 17 00:00:00 2001 From: xiaoz Date: Thu, 11 Apr 2019 17:45:38 +0800 Subject: [PATCH] API support --- application/controllers/Api.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 application/controllers/Api.php diff --git a/application/controllers/Api.php b/application/controllers/Api.php new file mode 100644 index 0000000..ac80d79 --- /dev/null +++ b/application/controllers/Api.php @@ -0,0 +1,20 @@ +load->model('query','',TRUE); + //查询图片 + $datas = $this->query->found_img($type,1); + + $json = json_encode($datas); + echo $json; + } + } +?> \ No newline at end of file