From 3adf0c66acb782b1c709a801a419cd7269cbcb80 Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 10 Jun 2025 12:54:57 +0800 Subject: [PATCH] add some --- misc/wx/access.go | 2 +- misc/wx/agent.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/wx/access.go b/misc/wx/access.go index 8800be2e..14e12122 100644 --- a/misc/wx/access.go +++ b/misc/wx/access.go @@ -159,7 +159,7 @@ func spideToken(m *ice.Message, api string, token, expire string, arg ...string) return } m.Info("res: %v", res.FormatMeta()) - mdb.HashModify(m, m.OptionSimple(ACCESS), expire, m.Time(kit.Format("%vs", kit.Int(res.Append(oauth.EXPIRES_IN))-1800)), token, res.Append(kit.Select(oauth.ACCESS_TOKEN, TICKET, api == TICKET_GETTICKET))) + mdb.HashModify(m, m.OptionSimple(ACCESS), expire, m.Time(kit.Format("%vs", kit.Int(res.Append(oauth.EXPIRES_IN))-3600)), token, res.Append(kit.Select(oauth.ACCESS_TOKEN, TICKET, api == TICKET_GETTICKET))) msg = mdb.HashSelect(m.Spawn(), m.Option(ACCESS)) } m.Echo(msg.Append(token)).Status(msg.AppendSimple(expire)) diff --git a/misc/wx/agent.js b/misc/wx/agent.js index d91e5653..bf8c290b 100644 --- a/misc/wx/agent.js +++ b/misc/wx/agent.js @@ -37,10 +37,10 @@ Volcanos(chat.ONIMPORT, { wx.ready(function () { function share(title, icons, content, link) { wx.updateAppMessageShareData({title: title, desc: content||can.user.info.titles, link: link||location.href, imgUrl: icons, fail: function(res) { - can.user.toastFailure(can, JSON.stringify(res)) + // can.user.toastFailure(can, JSON.stringify(res)) }}) can.user.isMobile && wx.updateTimelineShareData({title: title, link: link||location.href, imgUrl: icons, fail: function(res) { - can.user.toastFailure(can, JSON.stringify(res)) + // can.user.toastFailure(can, JSON.stringify(res)) }}) } var p = can.misc.Resource(can, can.user.info.favicon); can.base.beginWith(p, "/") && (p = location.origin + p)