mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
add feishu login
This commit is contained in:
parent
df5f129209
commit
0743b53e93
@ -7,5 +7,5 @@ var version = struct {
|
||||
self int
|
||||
}{
|
||||
[]string{"2017-11-01 01:02:03", "2019-07-13 18:02:21"},
|
||||
`2019-10-29 11:24:50`, `mac`, 665,
|
||||
`2019-10-29 12:46:35`, `com`, 708,
|
||||
}
|
||||
|
@ -291,6 +291,9 @@ var Index = &ctx.Context{Name: "feishu", Help: "飞书",
|
||||
}
|
||||
default:
|
||||
if m.Options("open_chat_id") {
|
||||
m.Option("username", m.Option("open_id"))
|
||||
m.Option("sessid", m.Cmdx("aaa.user", "session", "select"))
|
||||
m.Cmd("ssh._check", "work", "create", m.Option("username"))
|
||||
m.Goshy([]string{m.Option("text_without_at_bot")}, 0, nil, func(msg *ctx.Message) {
|
||||
m.Cmdy(".send", m.Option("open_chat_id"), kit.Select("你好", strings.Join(msg.Meta["result"], "")))
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user