mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 07:22:49 +08:00
Clear all is_master flags before electing new master to prevent multiple master records. Fix setMaster annotation from @auth true to proper @NodeAnotation format so permission node is generated correctly. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
23 lines
452 B
PHP
23 lines
452 B
PHP
<?php
|
|
|
|
namespace app\admin\controller\system;
|
|
|
|
use app\admin\service\annotation\ControllerAnnotation;
|
|
use base\admin\controller\system\HostBase;
|
|
|
|
/**
|
|
* @ControllerAnnotation(title="system_host",module="系统")
|
|
*/
|
|
class Host extends HostBase
|
|
{
|
|
/**
|
|
* 设置主节点.
|
|
*
|
|
* @\app\admin\service\annotation\NodeAnotation(title="设置主节点")
|
|
*/
|
|
public function setMaster()
|
|
{
|
|
return parent::setMaster();
|
|
}
|
|
}
|