[集群-自动切换过国标级联] 启动时自动注册上级只注册本平台的上级
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user