mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-27 04:59:36 +08:00
项目目录优化,任务模块后端代码
This commit is contained in:
@@ -24,7 +24,7 @@ func GetRealAddressByIP(ip string) string {
|
||||
if err != nil {
|
||||
return UNKNOWN
|
||||
}
|
||||
//fmt.Sprintf("%s %s",toMap["pro"].(string),toMap["city"].(string))
|
||||
//log.Println(fmt.Sprintf("%s %s",toMap["pro"].(string),toMap["city"].(string)))
|
||||
return toMap["addr"].(string)
|
||||
}
|
||||
|
||||
|
||||
@@ -6,3 +6,8 @@ func TestIdsStrToIdsIntGroup(t *testing.T) {
|
||||
group := IdsStrToIdsIntGroup("aaa")
|
||||
t.Log(len(group))
|
||||
}
|
||||
|
||||
func TestGetRealAddressByIP(t *testing.T) {
|
||||
ip := GetRealAddressByIP("10.42.0.1")
|
||||
t.Log(ip)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user