From 8f10a46fb5c9705a51655bb3686d15166523e8e2 Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 19 Nov 2024 09:32:17 +0800 Subject: [PATCH] add some --- misc/wx/agent.go | 3 +++ misc/wx/agent.js | 1 + 2 files changed, 4 insertions(+) diff --git a/misc/wx/agent.go b/misc/wx/agent.go index af9ec604..1bf6e021 100644 --- a/misc/wx/agent.go +++ b/misc/wx/agent.go @@ -55,6 +55,9 @@ func init() { )), 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("") 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"), + )) }}, }) } diff --git a/misc/wx/agent.js b/misc/wx/agent.js index 0ae4d7d3..507c92ec 100644 --- a/misc/wx/agent.js +++ b/misc/wx/agent.js @@ -1,6 +1,7 @@ Volcanos(chat.ONIMPORT, { _init: function(can, msg) { if (!can.user.info.username && can.user.info._cmd != "web.chat.oauth.client" && msg.Option("oauth")) { + debugger return can.user.jumps(msg.Option("oauth")) } msg.Option(ice.MSG_ACTION, ""), can.require([msg.Option(nfs.SCRIPT)], function(can) {