app拉起小程序 跳转失败是什么原因?
对照了appid,原始id都没错,但就是拉不起小程序
String appId = "wxad6628d95702e398"; // 填应用AppId
IWXAPI api = WXAPIFactory.createWXAPI(getActivity(), appId)
// api.registerApp(appId);
WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req()
req.userName = "gh_8bf4b612c524"; // 填小程序原始id
///pages/newIndex/newIndex?productId=11&pay4id=5922561&index=0
req.path = "/pages/newIndex/newIndex?productId=" + mSelectChargeBeanchargeProdId + "&pay4id=" + pay4id + "&index=" + index; //拉起小程序页面的可带参路径,不填默认拉起小程序首页
req.miniprogramType = WXLaunchMiniProgram.Req.MINIPTOGRAM_TYPE_RELEASE// 可选打开 开发版,体验版和正式版
Log."miniPrograme", req.path
api.sendReq(req)