- uniformMessage.send调用报47001错误?
nodejs发送统一服务消息报错47001,网上查说是模板解析json有问题,也就是代码里的data,哪位大佬分析一下哪里有问题呀?感谢感谢! let msg= { "touser": "o3ltM5CuCpZEsyVp6c4j6uAog4Y4", "mpTemplateMsg": { "appid": "wx88ccedd3284e305a", "url": "http://weixin.qq.com/download", "templateId": "rkEsP2kuSEgoa1yrs-Fg4p91mCdPuiUtLe50TlV6sB0", "miniprogram": { "appid": "wx1bc13d2103ff2668", "pagepath": '/pages/index/index', }, "data": { "first": { "value": "1", "color": "#173177" }, "keyword1": { "value": "2", "color": "#173177" }, "keyword2": { "value": "3", "color": "#173177" }, "remark": { "value": "4", "color": "#173177" } } } } sendopt = { method:'POST', uri:'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token='+asstoken, body:msg, json: true, headers:{ 'Content-Type':'application/json' } } let send = await rq(sendopt) console.log(send)
2022-04-23 - 云开发报错Environment cannot access from wx-miniapp
我在处理一个云函数的时候,在开发工具里一切正常,但是真机调试的时候报错Environment cannot access from wx-miniapp (callid 1612614947681-0.46067049283850015); at cloud.callFunction api; 我觉得大概是在真机上云环境无法访问到,有可能是我某个权限没给到,但是我不知道是哪里的问题,开发者工具没问题,但是到真机就是报错。[图片]
2021-02-06