Commit 28d92cc0 authored by huanle's avatar huanle

0529 addArticle

parent c53b675c
......@@ -168,12 +168,12 @@ class Index extends Controller
return json(code([], 10002, '请求失败'));
}
}
public function articleAdd()
{
$title = input('post.title');
$folderid = input('post.folderid');
$type = (int)input('post.type');
$doc = input('post.doc');
$model = new Doclist();
if (empty($type)) {
......@@ -186,7 +186,7 @@ class Index extends Controller
if ($res) {
return json(code([], 0, '添加成功'));
return json(code([$res], 0, '添加成功'));
} else {
return json(code([], 10002, '添加失败'));
}
......
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