完成内容管理

This commit is contained in:
augushong
2020-04-18 16:01:27 +08:00
parent dc15576de8
commit 84c1a51b86
18 changed files with 1548 additions and 253 deletions

View File

@@ -1,5 +1,6 @@
<?php
declare (strict_types = 1);
declare(strict_types=1);
namespace app\model;
@@ -10,5 +11,13 @@ use think\Model;
*/
class Category extends Model
{
//
//
public static function getListLevel()
{
$model_list = Category::select();
// return $model_list;
return array2level($model_list,0,0);
}
}