ref: v3变更,,表结构变更coreId/neId
This commit is contained in:
@@ -322,11 +322,11 @@ func (s *CBCMessage) handleStatusChange(msg model.CBCMessage, oldStatus, newStat
|
||||
// 这个方法需要根据你的实际网元管理系统来实现
|
||||
func (s *CBCMessage) getCBCNetworkElement(neId string) (string, int64, error) {
|
||||
// 查询网元信息
|
||||
neInfo := neService.NewNeInfo.FindByCoreUidAndNeUid("CBC", neId)
|
||||
if neInfo.IPAddr == "" {
|
||||
neInfo := neService.NewNeInfo.FindByNeUid(neId)
|
||||
if neInfo.IpAddr == "" {
|
||||
return "", 0, fmt.Errorf("CBC network element not found for neId: %s", neId)
|
||||
}
|
||||
return neInfo.IPAddr, neInfo.Port, nil
|
||||
return neInfo.IpAddr, neInfo.Port, nil
|
||||
}
|
||||
|
||||
// CBCHTTPClient CBC网元HTTP客户端
|
||||
|
||||
Reference in New Issue
Block a user