优化提取错误提示消息
This commit is contained in:
@@ -47,12 +47,12 @@ func (s *channelBaiyinService) CreateChannels(source netip.Addr, userId int32, r
|
||||
pass := false
|
||||
for i, item := range whitelists {
|
||||
whitelistIPs[i] = item.IP.String()
|
||||
if item.IP.Compare(source) != 0 {
|
||||
if item.IP.Addr == source {
|
||||
pass = true
|
||||
}
|
||||
}
|
||||
if !pass {
|
||||
return nil, core.NewBizErr("IP 地址不在白名单内")
|
||||
return nil, core.NewBizErr(fmt.Sprintf("IP 地址 %s 不在白名单内", source.String()))
|
||||
}
|
||||
|
||||
// 获取用户套餐并检查
|
||||
|
||||
Reference in New Issue
Block a user