Commit e8a20591 authored by huanle's avatar huanle

0525-10:15

parent 3413830a
......@@ -11,9 +11,7 @@ class Index extends Controller
{
public function index()
{
$model = new Folder();
$b = $model->index();
var_dump();
}
......@@ -23,12 +21,12 @@ class Index extends Controller
$model = new Folder();
$parentid = $request->param('parentid');
$res = $model->folderList($parentid);
if ($res) {
return json(code([$res], 0, 'ok'));
} else {
return json(code([$res], 10002, '请求失败'));
}
// if ($res) {
// return json(code([$res], 0, 'ok'));
// } else {
// return json(code([$res], 10002, '请求失败'));
// }
return json(code([$res], 0, 'ok'));
}
......
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