private boolean isWxAppInstalledAndSupported() { IWXAPI wxApi = WXAPIFactory.createWXAPI(this, null); wxApi.registerApp(MyConstant.WX_APP_ID); boolean bIsWXAppInstalledAndSupported = wxApi .isWXAppInstalled() && wxApi.isWXAppSupportAPI(); return bIsWXAppInstalledAndSupported; }
微信支付时判断是否安装微信
最新推荐文章于 2021-07-30 10:19:07 发布