|
@@ -30,7 +30,7 @@ func (r *ccIpListRepository) GetCcIpList(ctx context.Context, serverId int64) ([
|
|
|
return nil, err
|
|
|
}
|
|
|
var ips []string
|
|
|
- return ips, r.DBWithName(ctx,"cdn").Table("cloud_ip_items").Where("listId = ? AND sourceCategory = cc", ipListId).Select("value").Scan(&ips).Error
|
|
|
+ return ips, r.DBWithName(ctx,"cdn").Table("cloud_ip_items").Where("listId = ? AND sourceCategory = ?", ipListId, "cc").Select("value").Scan(&ips).Error
|
|
|
}
|
|
|
|
|
|
func (r *ccIpListRepository) GetHttpWebId(ctx context.Context, serverId int64) (int64, error) {
|