From aac41a7a1ab535c54fcbbd5b32ed1c80a46ea772 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Wed, 6 Oct 2021 14:55:35 +0800 Subject: [PATCH] update --- core/otto.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/otto.go b/core/otto.go index 812105d..4307168 100644 --- a/core/otto.go +++ b/core/otto.go @@ -6,7 +6,6 @@ import ( "os" "regexp" "strings" - "time" "github.com/beego/beego/v2/adapter/httplib" "github.com/beego/beego/v2/adapter/logs" @@ -16,13 +15,6 @@ import ( type JsReply string func init() { - go func() { - time.Sleep(time.Second) - init123() - }() -} - -func init123() { files, err := ioutil.ReadDir(ExecPath + "/develop/replies") if err != nil { logs.Warn("打开文件夹%s错误,%v", ExecPath+"/develop/replies", err)