Commit d6b21125 authored by huanle's avatar huanle

0526

parent b2b86b96
......@@ -180,7 +180,7 @@ class Index extends Controller
$doc = input('post.doc');
$docid = input('post.docid');
$model = new Doclist();
if (empty($folderid) || empty($title) || empty($doc) || empty($docid)) {
if (empty($folderid) || empty($title) || empty($doc) ) {
return json(code([], 10001, '参数不足'));
}
$res = $model->editArticle($title, $folderid, $doc, $docid);
......
......@@ -86,7 +86,6 @@ class Doclist extends Model
if ($docid) {
$where['docid'] = array('=',$docid);
$where['folderid'] = array('=',$folderid);
}
$rs = $this->where($where)->update($data);
......
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