update
This commit is contained in:
+19
@@ -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)
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user