update
This commit is contained in:
@@ -33,7 +33,7 @@ var ua = `Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) Appl
|
||||
func init() {
|
||||
core.AddCommand([]core.Function{
|
||||
{
|
||||
Rules: []string{`^asset\s+(.+)$`},
|
||||
Rules: []string{`^asset\s+(.+)$`, `^查询\s+(.+)$`},
|
||||
Handle: func(s im.Sender) interface{} {
|
||||
a := s.Get()
|
||||
envs, err := qinglong.GetEnvs("JD_COOKIE")
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package jdcookie
|
||||
|
||||
func init() {
|
||||
|
||||
}
|
||||
@@ -55,7 +55,7 @@ func getToken() (string, error) {
|
||||
req := httplib.Get(fmt.Sprintf("%s/open/auth/token?client_id=%s&client_secret=%s", Config.Host, Config.ClientID, Config.ClientSecret))
|
||||
data, err := req.Bytes()
|
||||
if err != nil {
|
||||
msg := fmt.Sprintf("青龙链接失败:%v", err)
|
||||
msg := fmt.Sprintf("青龙连接失败:%v", err)
|
||||
logs.Warn(msg)
|
||||
return "", errors.New(msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user