因为多渠道打包,导致文件路径不对,创建的文件夹名路径下加上渠道名字
app拉起小程序,无法从小程序返回appAPP拉起小程序正常 implementation 'com.tencent.mm.opensdk:wechat-sdk-android:+' IWXAPI api = WXAPIFactory.createWXAPI(this, HttpUtil.WECHAT_OPEN_APPID); WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req(); req.userName = HttpUtil.WECHAT_MINI_ID; req.path = "/pages/thirdpay/thirdpay?"+params; req.miniprogramType = WXLaunchMiniProgram.Req.MINIPROGRAM_TYPE_TEST; api.sendReq(req); 2、小程序返回app,点击按钮没有反映,也没有调用launchAppError <button style="margin-top: 100px;" open-type="launchApp" app-parameter="wechat" binderror="launchAppError">返回app2</button> 3、app有配置 WXEntryActivity <activity android:name=".wxapi.WXEntryActivity" android:exported="true" android:launchMode="singleTask" android:taskAffinity="io.dcloud.glzhtc" android:theme="@style/AppTheme.NoActionBar" /> [图片]
08-22