2026-02-17 13:06:23 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
"os"
|
|
|
|
|
"time"
|
|
|
|
|
"xiawan/wx/api"
|
|
|
|
|
"xiawan/wx/db"
|
|
|
|
|
"xiawan/wx/srv/srvconfig"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
2026-02-26 10:44:13 +08:00
|
|
|
fmt.Println("[+] 当前硬编码版本号: 0.0.1")
|
|
|
|
|
expireDate := time.Date(2028, 1, 30, 0, 0, 0, 0, time.Local)
|
2026-02-17 13:06:23 +08:00
|
|
|
if time.Now().After(expireDate) {
|
2026-02-26 10:44:13 +08:00
|
|
|
fmt.Println("qq:408449830")
|
2026-02-17 13:06:23 +08:00
|
|
|
os.Exit(1)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
srvconfig.ConfigSetUp()
|
|
|
|
|
version := srvconfig.GlobalSetting.Version
|
|
|
|
|
fmt.Println("Version: ", version)
|
|
|
|
|
|
|
|
|
|
db.InitDB()
|
|
|
|
|
go db.StartCleanupTask()
|
|
|
|
|
db.RedisSetup()
|
|
|
|
|
err := api.WXServerGinHttpApiStart()
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|