这个功能是否已经在小程序中开通?
在微信小程序SDK中就会报错!
代码:
var status = new AV.Status(null, 'content');
AV.Status.sendPrivateStatus(status,'581be1ae2e958a0054d70756').catch(console.error);
报错:
WAService.js:1 ReferenceError: AV is not defined
at getUser (http://941928489.appservice.open.weixin.qq.com/util/av-weapp.js:4475:1124)
at getUserPointer (http://941928489.appservice.open.weixin.qq.com/util/av-weapp.js:4475:1315)
at AV.Status.sendPrivateStatus (http://941928489.appservice.open.weixin.qq.com/util/av-weapp.js:4542:398)
at Object.success (http://941928489.appservice.open.weixin.qq.com/app.js:30:21)
at Object.function.t.(anonymous function).i.(anonymous function) as success
at http://941928489.appservice.open.weixin.qq.com/WAService.js:1:26849
at Object.a as 0.2101325138520176
at i (http://941928489.appservice.open.weixin.qq.com/asdebug.js:1:12567)
at p (http://941928489.appservice.open.weixin.qq.com/asdebug.js:1:4037)
at http://941928489.appservice.open.weixin.qq.com/asdebug.js:1:4842