1.update
parent
8a34133ac4
commit
1c3dea3f52
|
@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk.
|
||||||
s.dependency 'Flutter'
|
s.dependency 'Flutter'
|
||||||
s.ios.deployment_target = '9.0'
|
s.ios.deployment_target = '9.0'
|
||||||
|
|
||||||
s.dependency 'FinApplet' , '2.40.0-dev20230227v03'
|
s.dependency 'FinApplet' , '2.40.0-dev20230228v02'
|
||||||
s.dependency 'FinAppletExt' , '2.40.0-dev20230227v03'
|
s.dependency 'FinAppletExt' , '2.40.0-dev20230228v02'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
28
lib/mop.dart
28
lib/mop.dart
|
@ -588,20 +588,20 @@ class Mop {
|
||||||
_appletHandlerApis["getUserInfo"] = (params) {
|
_appletHandlerApis["getUserInfo"] = (params) {
|
||||||
return handler.getUserInfo();
|
return handler.getUserInfo();
|
||||||
};
|
};
|
||||||
_appletHandlerApis["getCustomMenus"] = (params) async {
|
// _appletHandlerApis["getCustomMenus"] = (params) async {
|
||||||
final res = await handler.getCustomMenus(params["appId"]);
|
// final res = await handler.getCustomMenus(params["appId"]);
|
||||||
List<Map<String, dynamic>> list = [];
|
// List<Map<String, dynamic>> list = [];
|
||||||
res.forEach((element) {
|
// res.forEach((element) {
|
||||||
Map<String, dynamic> map = Map();
|
// Map<String, dynamic> map = Map();
|
||||||
map["menuId"] = element.menuId;
|
// map["menuId"] = element.menuId;
|
||||||
map["image"] = element.image;
|
// map["image"] = element.image;
|
||||||
map["title"] = element.title;
|
// map["title"] = element.title;
|
||||||
map["type"] = element.type;
|
// map["type"] = element.type;
|
||||||
list.add(map);
|
// list.add(map);
|
||||||
});
|
// });
|
||||||
debugPrint("registerAppletHandler getCustomMenus list $list");
|
// debugPrint("registerAppletHandler getCustomMenus list $list");
|
||||||
return list;
|
// return list;
|
||||||
};
|
// };
|
||||||
_appletHandlerApis["onCustomMenuClick"] = (params) async {
|
_appletHandlerApis["onCustomMenuClick"] = (params) async {
|
||||||
return handler.onCustomMenuClick(
|
return handler.onCustomMenuClick(
|
||||||
params["appId"],
|
params["appId"],
|
||||||
|
|
Loading…
Reference in New Issue