From f003a6b8da4fe36cfc3a15dac7ba17436db0c088 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Tue, 18 Oct 2022 23:38:45 +0800 Subject: [PATCH] opt some --- core/mall/goods.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/mall/goods.go b/core/mall/goods.go index 96048af9..da149c2f 100644 --- a/core/mall/goods.go +++ b/core/mall/goods.go @@ -17,9 +17,7 @@ func init() { GOODS: {Name: "goods hash auto", Help: "商品", Actions: ice.MergeActions(ice.Actions{ mdb.MODIFY: {Name: "modify zone type name text price count image"}, web.UPLOAD: {Hand: func(m *ice.Message, arg ...string) { web.Upload(m) }}, - "copy": {Hand: func(m *ice.Message, arg ...string) { - m.Cmd("", mdb.CREATE, m.OptionSimple("zone,type,name,text,price,count,image")) - }}, + "copy": {Hand: func(m *ice.Message, arg ...string) { 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) { if mdb.HashSelect(m, arg...); len(arg) == 0 || arg[0] == "" { m.Action(mdb.CREATE, mdb.EXPORT, mdb.IMPORT)