浏览代码

add: config

Ben 8 月之前
父节点
当前提交
b23c16e1c6
共有 31 个文件被更改,包括 53 次插入44 次删除
  1. 53 44
      internal/server/server.go
  2. 二进制
      static/AE.png
  3. 二进制
      static/AU.png
  4. 二进制
      static/BH.png
  5. 二进制
      static/BR.jpg
  6. 二进制
      static/BR.png
  7. 二进制
      static/CA.png
  8. 二进制
      static/CH.png
  9. 二进制
      static/DE.jpg
  10. 二进制
      static/DE.png
  11. 二进制
      static/ES.png
  12. 二进制
      static/FR.png
  13. 二进制
      static/GB.png
  14. 二进制
      static/HK.jpg
  15. 二进制
      static/HK.png
  16. 二进制
      static/ID.png
  17. 二进制
      static/IL.png
  18. 二进制
      static/IN.png
  19. 二进制
      static/IT.png
  20. 二进制
      static/JP.jpg
  21. 二进制
      static/JP.png
  22. 二进制
      static/KR.png
  23. 二进制
      static/NL.png
  24. 二进制
      static/SA.png
  25. 二进制
      static/SE.png
  26. 二进制
      static/SG.png
  27. 二进制
      static/UK.jpg
  28. 二进制
      static/US.jpg
  29. 二进制
      static/US.png
  30. 二进制
      static/VN.png
  31. 二进制
      static/ZA.png

+ 53 - 44
internal/server/server.go

@@ -254,64 +254,73 @@ func convert2DtoNode(node *model.Node, seq int) *dto.Node {
 		return nil
 	}
 	icons := map[string]string{
-		"BR": "http://v.starttransfernow.com/static/BR.jpg",
-		"DE": "http://v.starttransfernow.com/static/DE.jpg",
-		"HK": "http://v.starttransfernow.com/static/HK.jpg",
-		"JP": "http://v.starttransfernow.com/static/JP.jpg",
-		"US": "http://v.starttransfernow.com/static/US.jpg",
-		"UK": "http://v.starttransfernow.com/static/UK.jpg",
-		"GB": "http://v.starttransfernow.com/static/UK.jpg",
-		"AU": "http://v.starttransfernow.com/static/AU.png",
-		"CA": "http://v.starttransfernow.com/static/CA.png",
-		"KR": "http://v.starttransfernow.com/static/KR.png",
-		"SA": "http://v.starttransfernow.com/static/SA.png",
-		"SG": "http://v.starttransfernow.com/static/SG.png",
-		"VN": "http://v.starttransfernow.com/static/VN.png",
 		"AE": "http://v.starttransfernow.com/static/AE.png",
+		"AU": "http://v.starttransfernow.com/static/AU.png",
 		"BH": "http://v.starttransfernow.com/static/BH.png",
+		"BR": "http://v.starttransfernow.com/static/BR.png",
+		"CA": "http://v.starttransfernow.com/static/CA.png",
+		"CH": "http://v.starttransfernow.com/static/CH.png",
+		"DE": "http://v.starttransfernow.com/static/DE.png",
+		"ES": "http://v.starttransfernow.com/static/ES.png",
 		"FR": "http://v.starttransfernow.com/static/FR.png",
+		"GB": "http://v.starttransfernow.com/static/GB.png",
+		"HK": "http://v.starttransfernow.com/static/HK.png",
+		"ID": "http://v.starttransfernow.com/static/ID.png",
+		"IL": "http://v.starttransfernow.com/static/IL.png",
 		"IN": "http://v.starttransfernow.com/static/IN.png",
-		"NL": "http://v.starttransfernow.com/static/NL.png",
+		"IT": "http://v.starttransfernow.com/static/IT.png",
+		"JP": "http://v.starttransfernow.com/static/JP.png",
+		"KR": "http://v.starttransfernow.com/static/KR.png",
+		"SE": "http://v.starttransfernow.com/static/SE.png",
+		"SG": "http://v.starttransfernow.com/static/SG.png",
+		"US": "http://v.starttransfernow.com/static/US.png",
+		"ZA": "http://v.starttransfernow.com/static/ZA.png",
 	}
 	countryLabels := map[string]string{
-		"BR": "Brazil",               // aws
-		"DE": "Germany",              // aws
-		"HK": "Hong Kong",            // aws
-		"JP": "Japan",                // aws
-		"US": "United States",        // digitalocean
-		"UK": "United Kingdom",       // aws
-		"GB": "United Kingdom",       // aws
-		"AU": "Australia",            // aws
-		"CA": "Canada",               // digitalocean
-		"KR": "South Korea",          // aws
-		"SA": "Saudi Arabia",         // 无
-		"SG": "Singapore",            //  digitalocean
-		"VN": "Vietnam",              // 无
-		"AE": "United Arab Emirates", // aws
-		"BH": "Bahrain",              // aws
-		"FR": "France",               // aws
-		"IN": "India",                //  digitalocean
-		"NL": "Netherlands",          //  digitalocean
+		"AE": "United Arab Emirates",
+		"AU": "Australia",
+		"BH": "Bahrain",
+		"BR": "Brazil",
+		"CA": "Canada",
+		"CH": "Switzerland",
+		"DE": "Germany",
+		"ES": "Spain",
+		"FR": "France",
+		"GB": "United Kingdom",
+		"HK": "Hong Kong",
+		"ID": "Indonesia",
+		"IL": "Israel",
+		"IN": "India",
+		"IT": "Italy",
+		"JP": "Japan",
+		"KR": "South Korea",
+		"SE": "Sweden",
+		"SG": "Singapore",
+		"US": "United States",
+		"ZA": "South Africa",
 	}
 	countryContinents := map[string]string{
+		"AE": "asia",
+		"AU": "oce",
+		"BH": "asia",
 		"BR": "southam",
+		"CA": "northam",
+		"CH": "eu",
 		"DE": "eu",
+		"ES": "eu",
+		"FR": "eu",
+		"GB": "eu",
 		"HK": "asia",
+		"ID": "asia",
+		"IL": "asia",
+		"IN": "asia",
+		"IT": "eu",
 		"JP": "asia",
-		"US": "northam",
-		"UK": "eu",
-		"GB": "eu",
-		"AU": "oce",
-		"CA": "northam",
 		"KR": "asia",
-		"SA": "asia",
+		"SE": "eu",
 		"SG": "asia",
-		"VN": "asia",
-		"AE": "asia",
-		"BH": "asia",
-		"FR": "eu",
-		"IN": "asia",
-		"NL": "eu",
+		"US": "northam",
+		"ZA": "southam",
 	}
 
 	countryLabel := fmt.Sprintf("%s", countryLabels[node.CountryCode])

二进制
static/AE.png


二进制
static/AU.png


二进制
static/BH.png


二进制
static/BR.jpg


二进制
static/BR.png


二进制
static/CA.png


二进制
static/CH.png


二进制
static/DE.jpg


二进制
static/DE.png


二进制
static/ES.png


二进制
static/FR.png


二进制
static/GB.png


二进制
static/HK.jpg


二进制
static/HK.png


二进制
static/ID.png


二进制
static/IL.png


二进制
static/IN.png


二进制
static/IT.png


二进制
static/JP.jpg


二进制
static/JP.png


二进制
static/KR.png


二进制
static/NL.png


二进制
static/SA.png


二进制
static/SE.png


二进制
static/SG.png


二进制
static/UK.jpg


二进制
static/US.jpg


二进制
static/US.png


二进制
static/VN.png


二进制
static/ZA.png