mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
opt some
This commit is contained in:
parent
994f64a274
commit
2bb502bdeb
@ -23,7 +23,7 @@ func _header_check(m *ice.Message, arg ...string) bool {
|
||||
if m.Option(web.SHARE) != "" {
|
||||
m.Cmd(web.SHARE, m.Option(web.SHARE), ice.OptionFields("")).Tables(func(value ice.Maps) {
|
||||
switch value[mdb.TYPE] {
|
||||
case "field", "storm":
|
||||
case web.FIELD, web.STORM:
|
||||
m.Option(ice.MSG_USERNAME, value[aaa.USERNAME])
|
||||
m.Option(ice.MSG_USERROLE, value[aaa.USERROLE])
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ func init() {
|
||||
_publish_file(m, m.Option(nfs.FILE))
|
||||
}},
|
||||
nfs.TRASH: {Name: "trash", Help: "删除", Hand: func(m *ice.Message, arg ...string) {
|
||||
os.Remove(path.Join(m.Config(nfs.PATH), m.Option(nfs.PATH)))
|
||||
m.Cmdy(nfs.TRASH, path.Join(m.Config(nfs.PATH), m.Option(nfs.PATH)))
|
||||
}},
|
||||
mdb.EXPORT: {Name: "export", Help: "工具链", Hand: func(m *ice.Message, arg ...string) {
|
||||
var list = []string{ice.ETC_PATH}
|
||||
|
Loading…
x
Reference in New Issue
Block a user