mirror of
https://shylinux.com/x/icebergs
synced 2025-05-12 15:38:14 +08:00
add some
This commit is contained in:
parent
705f3d074e
commit
1f9e8d756f
@ -82,8 +82,7 @@ func _go_show(m *ice.Message, arg ...string) {
|
|||||||
"gonganxitong/domain.go",
|
"gonganxitong/domain.go",
|
||||||
"gonganxitong/command.go",
|
"gonganxitong/command.go",
|
||||||
"gonganxitong/quotalist.go",
|
"gonganxitong/quotalist.go",
|
||||||
"operation/studio.go",
|
) && nfs.Exists(m, p) && !kit.IsIn(path.Base(arg[1]), "studio.go") {
|
||||||
) && nfs.Exists(m, p) {
|
|
||||||
if cmd := ctx.GetFileCmd(p); cmd != "" {
|
if cmd := ctx.GetFileCmd(p); cmd != "" {
|
||||||
if m.ActionKey() == mdb.RENDER {
|
if m.ActionKey() == mdb.RENDER {
|
||||||
ctx.ProcessField(m, cmd, kit.Simple())
|
ctx.ProcessField(m, cmd, kit.Simple())
|
||||||
|
7
logs.go
7
logs.go
@ -7,6 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"path"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@ -123,7 +124,11 @@ func (m *Message) Warn(err Any, arg ...Any) bool {
|
|||||||
}
|
}
|
||||||
str, meta := m.join(arg...)
|
str, meta := m.join(arg...)
|
||||||
if m.log(LOG_WARN, str, meta...); len(arg) > 0 {
|
if m.log(LOG_WARN, str, meta...); len(arg) > 0 {
|
||||||
m.Option(MSG_TITLE, kit.JoinWord(kit.Keys(m.Option(MSG_USERPOD), m.CommandKey(), m.ActionKey()), logs.FileLines(-2)))
|
p := path.Join(kit.Slice(strings.Split(logs.FileLines(-2), "/"), -2)...)
|
||||||
|
m.Info("what %v", strings.Split(logs.FileLines(-2), "/"))
|
||||||
|
m.Info("what %v", kit.Slice(strings.Split(logs.FileLines(-2), "/"), -2))
|
||||||
|
m.Info("what %v", p)
|
||||||
|
m.Option(MSG_TITLE, kit.JoinWord(kit.Keys(m.Option(MSG_USERPOD), m.CommandKey(), m.ActionKey()), p))
|
||||||
m.error(arg...)
|
m.error(arg...)
|
||||||
kit.If(map[string]int{
|
kit.If(map[string]int{
|
||||||
ErrNotLogin: http.StatusUnauthorized,
|
ErrNotLogin: http.StatusUnauthorized,
|
||||||
|
@ -139,7 +139,7 @@ func init() {
|
|||||||
}, gdb.EventsAction(web.SPACE_GRANT, web.SPACE_LOGIN_CLOSE), mdb.ExportHashAction(
|
}, gdb.EventsAction(web.SPACE_GRANT, web.SPACE_LOGIN_CLOSE), mdb.ExportHashAction(
|
||||||
mdb.SHORT, ACCESS, mdb.FIELD, "time,type,access,icons,usernick,appid,secret,token", tcp.SERVER, CGI_BIN,
|
mdb.SHORT, ACCESS, mdb.FIELD, "time,type,access,icons,usernick,appid,secret,token", tcp.SERVER, CGI_BIN,
|
||||||
)), Hand: func(m *ice.Message, arg ...string) {
|
)), Hand: func(m *ice.Message, arg ...string) {
|
||||||
mdb.HashSelect(m, arg...).PushAction(OAUTH, web.SSO, mdb.REMOVE).StatusTimeCount(mdb.ConfigSimple(m, ACCESS, APPID), web.SERVE, m.MergeLink("/chat/wx/login/"))
|
mdb.HashSelect(m, arg...).PushAction(OAUTH, web.SSO, TOKENS, TICKET, mdb.REMOVE).StatusTimeCount(mdb.ConfigSimple(m, ACCESS, APPID), web.SERVE, m.MergeLink("/chat/wx/login/"))
|
||||||
m.RewriteAppend(func(value, key string, index int) string {
|
m.RewriteAppend(func(value, key string, index int) string {
|
||||||
kit.If(key == cli.QRCODE, func() { value = ice.Render(m, ice.RENDER_QRCODE, value) })
|
kit.If(key == cli.QRCODE, func() { value = ice.Render(m, ice.RENDER_QRCODE, value) })
|
||||||
return value
|
return value
|
||||||
|
@ -32,14 +32,14 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
]), openTagList: ["wx-open-subscribe"],
|
]), openTagList: ["wx-open-subscribe"],
|
||||||
})
|
})
|
||||||
wx.ready(function () {
|
wx.ready(function () {
|
||||||
function share(title, icons, content) {
|
function share(title, icons, content, link) {
|
||||||
wx.updateAppMessageShareData({title: title, desc: content||can.user.info.titles, link: location.href, imgUrl: icons})
|
wx.updateAppMessageShareData({title: title, desc: content||can.user.info.titles, link: link||location.href, imgUrl: icons})
|
||||||
wx.updateTimelineShareData({title: title, link: location.href, imgUrl: icons})
|
wx.updateTimelineShareData({title: title, link: link||location.href, imgUrl: icons})
|
||||||
}
|
}
|
||||||
var p = can.misc.Resource(can, can.user.info.favicon); can.base.beginWith(p, "/") && (p = location.origin + p)
|
var p = can.misc.Resource(can, can.user.info.favicon); can.base.beginWith(p, "/") && (p = location.origin + p)
|
||||||
can.user.agent.init = function(can, content, icons) { if (!can) { return }
|
can.user.agent.init = function(can, content, icons, link) { if (!can) { return }
|
||||||
p = can.misc.Resource(can, icons||can.Conf(mdb.ICONS))||p; can.base.beginWith(p, "/") && (p = location.origin + p)
|
p = can.misc.Resource(can, icons||can.Conf(mdb.ICONS))||p; can.base.beginWith(p, "/") && (p = location.origin + p)
|
||||||
share(document.title, p, content)
|
share(document.title, p, content, link)
|
||||||
}, can.user.agent.init(can.user.agent.cmd, can.user.agent._init_content, can.user.agent._init_icons)
|
}, can.user.agent.init(can.user.agent.cmd, can.user.agent._init_content, can.user.agent._init_icons)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user