This commit is contained in:
cdle
2021-09-28 18:14:51 +08:00
parent c4ee0fb340
commit 7c2ece666a
2 changed files with 24 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package core
import "fmt"
var env = NewBucket("env")
func init() {
// var xa = `https://jintia.jintias.cn/api/xatx.php?msg={{1}}`
// replies := []string{
// `你是,(.*)=>你好,我是{{1}}。`,
// `(小爱\S*)=>gjson(req(xa,1), text)`,
// }
// fmt.Println(replies)
var template = `
var content = {{1}}
`
fmt.Println(template)
}
+5
View File
@@ -13,7 +13,12 @@ import (
"github.com/astaxie/beego/logs"
)
var BeforeStop = []func(){}
func Daemon() {
for _, bs := range BeforeStop {
bs()
}
args := os.Args[1:]
execArgs := make([]string, 0)
l := len(args)