From a91cfc31ba74b5b29ccb0086c45cf63190a0863b Mon Sep 17 00:00:00 2001 From: zhongweiguang Date: Fri, 24 Mar 2023 10:43:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E9=94=99=E8=AF=AF=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mop.dart | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/mop.dart b/lib/mop.dart index 9147afa..6cf813e 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -285,10 +285,10 @@ class UIConfig { /// 隐藏...弹出菜单中的 【返回首页】 菜单 bool isHideBackHome = false; - /// 隐藏...弹出菜单中的 【转发】 的菜单,默认为false + /// 隐藏...弹出菜单中的 【转发】 菜单,默认为false bool isHideForwardMenu = false; - /// 隐藏...弹出菜单中的 【分享】 的菜单,默认为true + /// 隐藏...弹出菜单中的 【分享】 菜单,默认为true bool isHideShareAppletMenu = true; /// 隐藏...弹出菜单中的 【添加到桌面】 菜单 @@ -1113,20 +1113,20 @@ class Mop { _appletHandlerApis["getUserInfo"] = (params) { return handler.getUserInfo(); }; - // _appletHandlerApis["getCustomMenus"] = (params) async { - // final res = await handler.getCustomMenus(params["appId"]); - // List> list = []; - // res.forEach((element) { - // Map map = Map(); - // map["menuId"] = element.menuId; - // map["image"] = element.image; - // map["title"] = element.title; - // map["type"] = element.type; - // list.add(map); - // }); - // debugPrint("registerAppletHandler getCustomMenus list $list"); - // return list; - // }; + _appletHandlerApis["getCustomMenus"] = (params) async { + final res = await handler.getCustomMenus(params["appId"]); + List> list = []; + res.forEach((element) { + Map map = Map(); + map["menuId"] = element.menuId; + map["image"] = element.image; + map["title"] = element.title; + map["type"] = element.type; + list.add(map); + }); + debugPrint("registerAppletHandler getCustomMenus list $list"); + return list; + }; _appletHandlerApis["onCustomMenuClick"] = (params) async { return handler.onCustomMenuClick( params["appId"],