APP一次性订阅提示“应用访问参数错误”
开放平台帐号: [email protected]
应用:AppID:wx39b5cc796304ac1e
模版ID:dG-T4qN-hxsVaLkw7YZfx2qcTXvn9y5grxyveweo5-c
使用文档中的方法拉起微信一次行授权,曾经成功提示过授权页面,然后后边就再也无法成功了,一直提示“应用访问参数错误”。
代码如下:
//**** Android
SubscribeMessage.Req req = new SubscribeMessage.Req();
req.scene = Integer.parseInt(scene);
req.templateID = templateId;
req.reserved = reserved;
api.sendReq(req);
//***** IOS
if([WXApi isWXAppInstalled]){
[WXApi registerApp:WeiXinShareAppID enableMTA:YES];
WXSubscribeMsgReq *req = [[WXSubscribeMsgReq alloc] init];
req.scene = [scene intValue];
req.templateId = templateId;
req.reserved = reserved;
[WXApi sendReq:req];
}