收藏
回答

一次性订阅返回“应用程序访问参数错误” ?

开放平台帐号: tielvkj@163.com

应用:AppID:wx39b5cc796304ac1e

模版ID:dG-T4qN-hxsVaLkw7YZfx2qcTXvn9y5grxyveweo5-c

微信版本7.0.11

使用文档中的方法拉起微信一次行授权,曾经成功提示过授权页面,然后后边就再也无法成功了,一直提示“应用访问参数错误”。

代码如下

//**** 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];
​
    }
回答关注问题邀请回答
收藏
登录 后发表内容
问题标签