Files
augushong e558a97e91 fix(host): 防止主节点重复并修复 setMaster 权限
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>
2026-05-26 18:33:46 +08:00

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();
}
}