您好 请问解决了嘛
androd唤起小程序支付后无法返回app通过launchMini方法能跳转到小程序页面,但是点击小程序的launchApp button没法回到应用,应用的WXEntryActivity类中的onResp方法也能 收到小程序传过来的参数,就是小程序页面没有消失。同时安卓控制台有 ‘into miniPrograme:xxx’的打印。以下是Manifest及跳转的代码片段 <activity android:name=".wxapi.WXEntryActivity" android:exported="true" android:taskAffinity="com.intramirror.android" android:launchMode="singleTask"/> public static void launchMini(Context context, String orderId, String orderNum, String paymentType, String amount, String originId, String appId, String miniPath, String token){ if (!MyApplication.getIWXAPI().isWXAppInstalled()) { ToastUtil.show(R.string.wx_not_installed); return; } IWXAPI api = WXAPIFactory.createWXAPI(context, appId); WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req(); req.userName = originId; // 填小程序原始id req.path = miniPath + "?orderId=" + orderId + "&token=" + token + "&paymentType=" + paymentType + "&amount=" + amount + "&orderNum=" + orderNum; req.miniprogramType = WXLaunchMiniProgram.Req.MINIPROGRAM_TYPE_PREVIEW; api.sendReq(req); }
06-19