mirror of
https://shylinux.com/x/icebergs
synced 2025-06-26 02:17:30 +08:00
add some
This commit is contained in:
parent
aa27f507bc
commit
3adf0c66ac
@ -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))
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user