forked from x/icebergs
add some
This commit is contained in:
parent
313b7d4c95
commit
8f10a46fb5
@ -55,6 +55,9 @@ func init() {
|
|||||||
)), Hand: func(m *ice.Message, arg ...string) {
|
)), Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Cmdy(ACCESS, AGENT).Options(SIGNATURE, _wx_sign(m, m.Option(NONCESTR, ice.Info.Pathname), m.Option(TIMESTAMP, kit.Format(time.Now().Unix())))).Display("")
|
m.Cmdy(ACCESS, AGENT).Options(SIGNATURE, _wx_sign(m, m.Option(NONCESTR, ice.Info.Pathname), m.Option(TIMESTAMP, kit.Format(time.Now().Unix())))).Display("")
|
||||||
ctx.OptionFromConfig(m, nfs.SCRIPT, "oauth")
|
ctx.OptionFromConfig(m, nfs.SCRIPT, "oauth")
|
||||||
|
m.Option("oauth", strings.ReplaceAll(m.Option("oauth"),
|
||||||
|
"https%3A%2F%2Fyunxuanlinghang.com", strings.ReplaceAll(m.Option(ice.MSG_USERHOST), "://", "%3A%2F%2F"),
|
||||||
|
))
|
||||||
}},
|
}},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
Volcanos(chat.ONIMPORT, {
|
Volcanos(chat.ONIMPORT, {
|
||||||
_init: function(can, msg) {
|
_init: function(can, msg) {
|
||||||
if (!can.user.info.username && can.user.info._cmd != "web.chat.oauth.client" && msg.Option("oauth")) {
|
if (!can.user.info.username && can.user.info._cmd != "web.chat.oauth.client" && msg.Option("oauth")) {
|
||||||
|
debugger
|
||||||
return can.user.jumps(msg.Option("oauth"))
|
return can.user.jumps(msg.Option("oauth"))
|
||||||
}
|
}
|
||||||
msg.Option(ice.MSG_ACTION, ""), can.require([msg.Option(nfs.SCRIPT)], function(can) {
|
msg.Option(ice.MSG_ACTION, ""), can.require([msg.Option(nfs.SCRIPT)], function(can) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user