forked from ShiShuMo/jd_cookie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enen.go
34 lines (31 loc) · 762 Bytes
/
enen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package jd_cookie
func initEnEn() {
// core.AddCommand("jd", []core.Function{
// {
// Rules: []string{"eueu ?"},
// Admin: true,
// Handle: func(s core.Sender) interface{} {
// envs, err := qinglong.GetEnvs("JD_WSCK")
// if err != nil {
// return err
// }
// yes := false
// for _, env := range envs {
// if strings.Contains(env.Value, s.Get()) {
// yes = true
// pin := core.FetchCookieValue("pin", env.Value)
// pt_key, err := getKey(env.Value)
// if err != nil {
// return err
// }
// s.Reply(fmt.Sprintf("pt_key=%s;pt_pin=%s;", pt_key, pin))
// }
// }
// if !yes {
// return "找不到转换目标"
// }
// return nil
// },
// },
// })
}