BOOL registerAppResult = [WXApi registerApp:[SHMCHINASERVICE weChatAppId] universalLink:[SHMChinaService sharedManager].universalLinkUrl];
if (registerAppResult) {
WXInvoiceAuthInsertReq *req = [[WXInvoiceAuthInsertReq alloc] init];
req.urlString = auth_url;
[WXApi sendReq:req completion:^(BOOL success) {
}];
}
如上调用发票授权页面的代码片段,在app中调用发票授权页链接的时候,能调用起微信app,但一直提示“正在连接....”,然后再调回去原app去了,并没有出现发票授权的页面。
参考官方文档链接地址:https://developers.weixin.qq.com/doc/offiaccount/WeChat_Invoice/E_Invoice/Vendor_API_List.html#4
跳转到微信app:
微信app内显示正在连接:
自动跳转回原app:
你好,参考https://developers.weixin.qq.com/community/develop/doc/0002ca9dd24018bdd2993dda05b800