mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
opt some
This commit is contained in:
parent
30348175f4
commit
f003a6b8da
@ -17,9 +17,7 @@ func init() {
|
|||||||
GOODS: {Name: "goods hash auto", Help: "商品", Actions: ice.MergeActions(ice.Actions{
|
GOODS: {Name: "goods hash auto", Help: "商品", Actions: ice.MergeActions(ice.Actions{
|
||||||
mdb.MODIFY: {Name: "modify zone type name text price count image"},
|
mdb.MODIFY: {Name: "modify zone type name text price count image"},
|
||||||
web.UPLOAD: {Hand: func(m *ice.Message, arg ...string) { web.Upload(m) }},
|
web.UPLOAD: {Hand: func(m *ice.Message, arg ...string) { web.Upload(m) }},
|
||||||
"copy": {Hand: func(m *ice.Message, arg ...string) {
|
"copy": {Hand: func(m *ice.Message, arg ...string) { m.Cmd("", mdb.CREATE, m.OptionSimple("zone,type,name,text,price,count,image")) }},
|
||||||
m.Cmd("", mdb.CREATE, m.OptionSimple("zone,type,name,text,price,count,image"))
|
|
||||||
}},
|
|
||||||
}, mdb.HashAction(mdb.FIELD, "time,hash,zone,type,name,text,price,count,image")), Hand: func(m *ice.Message, arg ...string) {
|
}, mdb.HashAction(mdb.FIELD, "time,hash,zone,type,name,text,price,count,image")), Hand: func(m *ice.Message, arg ...string) {
|
||||||
if mdb.HashSelect(m, arg...); len(arg) == 0 || arg[0] == "" {
|
if mdb.HashSelect(m, arg...); len(arg) == 0 || arg[0] == "" {
|
||||||
m.Action(mdb.CREATE, mdb.EXPORT, mdb.IMPORT)
|
m.Action(mdb.CREATE, mdb.EXPORT, mdb.IMPORT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user