mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
完成内容管理
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user