|
@@ -231,12 +231,17 @@ func convert2DtoNode(node *model.Node, seq int) *dto.Node {
|
|
|
"VN": "Vietnam", // 无
|
|
|
}
|
|
|
|
|
|
+ countryLabel := fmt.Sprintf("%s", countryLabels[node.CountryCode])
|
|
|
+ if node.CountryCode == "US" {
|
|
|
+ countryLabel = fmt.Sprintf("%s - %d", countryLabels[node.CountryCode], seq+1)
|
|
|
+ }
|
|
|
+
|
|
|
return &dto.Node{
|
|
|
Ip: node.Ip,
|
|
|
CountryCode: node.CountryCode,
|
|
|
CountryName: node.CountryName,
|
|
|
City: node.City,
|
|
|
- CountryLabel: fmt.Sprintf("%s - %d", countryLabels[node.CountryCode], seq+1),
|
|
|
+ CountryLabel: countryLabel,
|
|
|
Icon: icons[node.CountryCode],
|
|
|
SecretUrl: fmt.Sprintf("http://v.starttransfernow.com/secret?ip=%s", node.Ip),
|
|
|
}
|