fix 修复小程序跳回APP的事件返回到JS层时type参数缺失的问题

This commit is contained in:
little-snow-fox 2019-12-08 01:18:09 +08:00
parent bdfaa21eb5
commit d2da2667e3
2 changed files with 3 additions and 1 deletions

View File

@ -832,7 +832,9 @@ public class WeChatModule extends ReactContextBaseJavaModule implements IWXAPIEv
WXLaunchMiniProgram.Resp resp = (WXLaunchMiniProgram.Resp) baseResp; WXLaunchMiniProgram.Resp resp = (WXLaunchMiniProgram.Resp) baseResp;
// 对应JsApi navigateBackApplication中的extraData字段数据 // 对应JsApi navigateBackApplication中的extraData字段数据
String extraData = resp.extMsg; String extraData = resp.extMsg;
map.putString("type", "WXLaunchMiniProgramReq.Resp");
map.putString("extraData", extraData); map.putString("extraData", extraData);
map.putString("extMsg", extraData);
} }
this.getReactApplicationContext() this.getReactApplicationContext()

View File

@ -1,6 +1,6 @@
{ {
"name": "react-native-wechat-lib", "name": "react-native-wechat-lib",
"version": "1.1.7", "version": "1.1.8",
"description": "react-native library for wechat app. 支持分享和拉起小程序。", "description": "react-native library for wechat app. 支持分享和拉起小程序。",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {