[集群-自动切换过国标级联] 启动时自动注册上级只注册本平台的上级

This commit is contained in:
648540858
2025-01-02 16:30:02 +08:00
parent d022eb72d6
commit 91b0ba4d5e
5 changed files with 10 additions and 7 deletions

View File

@@ -31,10 +31,13 @@ public class SipPlatformRunner implements CommandLineRunner {
@Autowired
private ISIPCommanderForPlatform sipCommanderForPlatform;
@Autowired
private UserSetting userSetting;
@Override
public void run(String... args) throws Exception {
// 获取所有启用的平台
List<Platform> parentPlatforms = platformService.queryEnablePlatformList();
List<Platform> parentPlatforms = platformService.queryEnablePlatformList(userSetting.getServerId());
for (Platform platform : parentPlatforms) {