This commit is contained in:
cdle
2021-09-02 22:23:14 +08:00
parent 7531fd5ece
commit 8f4146b7bb
5 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -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")
+5
View File
@@ -0,0 +1,5 @@
package jdcookie
func init() {
}
+1 -1
View File
@@ -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)
}