From 0f87c5ac5e3850e695e81bc3b6a7030797a6eadb Mon Sep 17 00:00:00 2001 From: shy Date: Mon, 15 Jul 2024 17:55:57 +0800 Subject: [PATCH] add some --- misc/wx/agent.js | 1 - misc/wx/menu.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/wx/agent.js b/misc/wx/agent.js index 85b8ddc0..52a34495 100644 --- a/misc/wx/agent.js +++ b/misc/wx/agent.js @@ -1,7 +1,6 @@ Volcanos(chat.ONIMPORT, { _init: function(can, msg) { if (!can.user.info.username && can.user.info._cmd != "web.chat.oauth.client" && msg.Option("oauth")) { - debugger can.user.jumps(msg.Option("oauth")) return } diff --git a/misc/wx/menu.go b/misc/wx/menu.go index 89091be5..5856cf62 100644 --- a/misc/wx/menu.go +++ b/misc/wx/menu.go @@ -25,6 +25,7 @@ func init() { )))), Actions: ice.MergeActions(ice.Actions{ mdb.CREATE: {Name: "create scene*=main river*=1,2,3 storm*=1,2,3,4,5,6 type*=click,view,location_select,scancode_waitmsg,scancode_push,pic_photo_or_album,pic_sysphoto,pic_weixin name* text icons space index args"}, mdb.UPDATE: {Name: "update scene*", Hand: func(m *ice.Message, arg ...string) { + defer web.ToastProcess(m)() list := kit.Dict() m.Cmd("", m.Option(ACCESS), func(value ice.Maps) { if value[SCENE] == m.Option(SCENE) { @@ -40,6 +41,7 @@ func init() { } }) m.Echo(kit.Formats(SpidePost(m, MENU_CREATE, web.SPIDE_DATA, kit.Formats(list)))) + m.ProcessHold() }}, }, mdb.ExportHashAction(mdb.SHORT, "scene,river,storm", mdb.FIELD, "time,hash,scene,river,storm,type,name,text,icons,space,index,args")), Hand: func(m *ice.Message, arg ...string) { if len(arg) == 0 {