fix: 修正打包脚本插件目录名(addon)、重建框架文件清单、修复 install.sql(sms 表冲突/菜单归属/权限名拼写)
This commit is contained in:
@@ -41,14 +41,6 @@ class Category extends BaseModel
|
||||
return $this->hasMany(Links::class, 'cid', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 子分类(二级及更深层次)
|
||||
*/
|
||||
public function children()
|
||||
{
|
||||
return $this->hasMany(self::class, 'pid', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除前保护:存在子分类或下属链接时禁止删除,避免产生孤儿数据
|
||||
* @param \think\Model $model
|
||||
|
||||
Reference in New Issue
Block a user