2021-09-28 11:47:19 +08:00
|
|
|
package tools
|
|
|
|
|
2021-10-13 14:35:24 +08:00
|
|
|
import (
|
2021-12-16 15:35:44 +08:00
|
|
|
"SciencesServer/app/basic/config"
|
2021-10-13 14:35:24 +08:00
|
|
|
"SciencesServer/tools/ip"
|
2021-12-03 15:22:23 +08:00
|
|
|
"SciencesServer/utils"
|
2021-10-13 14:35:24 +08:00
|
|
|
)
|
2021-09-28 11:47:19 +08:00
|
|
|
|
2021-10-13 14:35:24 +08:00
|
|
|
func initIP() {
|
2021-09-28 11:47:19 +08:00
|
|
|
_ = ip.Load("./file/ip_chunzhen.txt")
|
|
|
|
}
|
2021-10-13 14:35:24 +08:00
|
|
|
|
|
|
|
func initJSON() {
|
2021-12-16 15:35:44 +08:00
|
|
|
utils.LoadConfig("./file/area.json", &config.MemoryForAreaInfo)
|
2021-10-13 14:35:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func Init() {
|
|
|
|
initIP()
|
|
|
|
initJSON()
|
|
|
|
}
|