feat: 调整判断网络状态方式

This commit is contained in:
Mmx
2021-09-19 22:47:53 +08:00
parent bffdadda91
commit 83d020c928
5 changed files with 14 additions and 27 deletions

View File

@@ -3,8 +3,10 @@ package util
import (
"autoLogin/global"
"autoLogin/models"
"github.com/Mmx233/tool"
"log"
"os"
"time"
)
func init() {
@@ -31,4 +33,7 @@ func init() {
_ = File.WriteJson(Path, c.FillDefault())
global.Config = &c
//http工具设定
tool.HTTP.Options.Timeout = 3 * time.Second
}