wx.requestSubscribeMessage is not a function?
发布于 7 年前 作者 zhuxia 1423 次浏览 来自 问答

API名称:wx.requestSubscribeMessage

微信版本号:7.0.4

手机型号:iphoneX

基础库:2.9.4

问题:调用消息订阅API会报以下错误,无论是扫开发版的码,还是本地调式,还是生成体验码都是这个问题,不能进行测试,麻烦问下是开发和体验版低版本的微信不支持吗?上线后能支持吗?

thirdScriptError

wx.requestSubscribeMessage is not a function; [Component] Event Handler Error @ component/subscribe/subscribe-news-modal/subscribe-news-modal#subscribe

TypeError: wx.requestSubscribeMessage is not a function

    at ye.subscribeNews (weapp:///component/subscribe/subscribeBehavior.js:72:10)

    at ye.subscribe (weapp:///component/subscribe/subscribe-news-modal/subscribe-news-modal.js:49:12)

    at Object.r.safeCallback (WAService.js:1:1035130)

    at eval (WAService.js:1:1227197)

    at r (WAService.js:1:1159525)

    at eval (WAService.js:1:1159647)

    at eval (WAService.js:1:392339)

    at Object.m (WAService.js:1:1826)

    at Object.value [as subscribeHandler] (http://127.0.0.1:11505/remote-debug/runtime.js?devtools_ignore=true:1:16989)

    at eval (eval at c (http://127.0.0.1:11505/remote-debug/runtime.js?devtools_ignore=true:1:6447), <anonymous>:1:17)

2 回复

用户基础库版本过低。建议你设置线上最低版本基础库。微信7.0.4版本还没有 订阅消息这个api的基础库呢。你升级微信到最新版 就可以调试了。订阅消息最低基础库支持的2.8.2版本。微信7.0.4版本的基础库是2.7.7

需要相应的客户端支持

回到顶部