21 lines
295 B
Go
21 lines
295 B
Go
package tools
|
|
|
|
import (
|
|
"SciencesServer/app/basic/config"
|
|
"SciencesServer/tools/ip"
|
|
"SciencesServer/utils"
|
|
)
|
|
|
|
func initIP() {
|
|
_ = ip.Load("./file/ip_chunzhen.txt")
|
|
}
|
|
|
|
func initJSON() {
|
|
utils.LoadConfig("./file/area.json", &config.MemoryForAreaInfo)
|
|
}
|
|
|
|
func Init() {
|
|
initIP()
|
|
initJSON()
|
|
}
|