Commit 9d6c8ba9 authored by huanle's avatar huanle

0527

parent 4b91519c
...@@ -6,9 +6,10 @@ use think\Request; ...@@ -6,9 +6,10 @@ use think\Request;
use think\Controller; use think\Controller;
use app\api\model\Folder; use app\api\model\Folder;
use app\api\model\Doclist; use app\api\model\Doclist;
use think\Cache;
class Index extends Controller class Index extends Controller
{ {
public function _initialize() public function _initialize()
{ {
$token = input('post.token'); $token = input('post.token');
...@@ -20,12 +21,8 @@ class Index extends Controller ...@@ -20,12 +21,8 @@ class Index extends Controller
} }
} }
public function index()
{
}
public function folderList() public function folderList()
{ {
$request = Request::instance(); $request = Request::instance();
...@@ -191,7 +188,7 @@ class Index extends Controller ...@@ -191,7 +188,7 @@ class Index extends Controller
$doc = input('post.doc'); $doc = input('post.doc');
$docid = input('post.docid'); $docid = input('post.docid');
$model = new Doclist(); $model = new Doclist();
if ( empty($title) || empty($doc) || empty($docid)) { if (empty($folderid) || empty($title) || empty($doc) || empty($docid)) {
return json(code([], 10001, '参数不足')); return json(code([], 10001, '参数不足'));
} }
$res = $model->editArticle($title, $folderid, $doc, $docid); $res = $model->editArticle($title, $folderid, $doc, $docid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment