Commit 9d6c8ba9 authored by huanle's avatar huanle

0527

parent 4b91519c
......@@ -6,9 +6,10 @@ use think\Request;
use think\Controller;
use app\api\model\Folder;
use app\api\model\Doclist;
use think\Cache;
class Index extends Controller
{
public function _initialize()
{
$token = input('post.token');
......@@ -20,12 +21,8 @@ class Index extends Controller
}
}
public function index()
{
}
public function folderList()
{
$request = Request::instance();
......@@ -191,7 +188,7 @@ class Index extends Controller
$doc = input('post.doc');
$docid = input('post.docid');
$model = new Doclist();
if ( empty($title) || empty($doc) || empty($docid)) {
if (empty($folderid) || empty($title) || empty($doc) || empty($docid)) {
return json(code([], 10001, '参数不足'));
}
$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