有小程序的openid,也获取到开放平台下与公众号相同的unionid,可否通过unionid直接推送公众号消息?还是要再获取公众号的openid才能推送公众号消息?
小程序的信息通过公众号推送给用户?兄弟们 请教一个问题 怎么能让小程序里面的信息通过微信公众号去推送给用户呢?(小程序已经和公众号绑定) 做的是一个医疗挂号的小程序 需要把挂号的信息推送给用户 看了些文档 很懵...
2021-09-01我也遇到这样的问题,开发工具使用正常,到了真机调试就出了这个问题!!!
请问小程序真机测试是报cmdld 1005 errCode -2错误 是什么原因?请问小程序真机测试时报cmdld 1005 errCode -2错误是什么原因?
2021-06-18wx.request({ 'url': url, 'data': option.data ? option.data : {}, 'header': option.header ? option.header : {}, 'method': option.method ? option.method : 'GET', 'header': { 'content-type': 'application/x-www-form-urlencoded' }, 'success': function (response) { wx.hideNavigationBarLoading(); if (response.data.errno) { if (response.data.errno == '41009') { wx.setStorageSync('userInfo', ''); util.getUserInfo(function () { util.request(option) }); return; } else { if (option.fail && typeof option.fail == 'function') { option.fail(response); } else { if (response.data.message) { if (response.data.data != null && response.data.data.redirect) { var redirect = response.data.data.redirect; } else { var redirect = ''; } app.util.message(response.data.message, redirect, 'error'); } } return; } } else { if (option.success && typeof option.success == 'function') { option.success(response); } //写入缓存,减少HTTP请求,并且如果网络异常可以读取缓存数据 if (option.cachetime) { var cachedata = { 'data': response.data, 'expire': timestamp + option.cachetime * 1000 }; wx.setStorageSync(cachekey, cachedata); } } }, 'fail': function (response) { wx.hideNavigationBarLoading(); //wx.hideLoading(); //如果请求失败,尝试从缓存中读取数据 var md5 = require('md5.js'); var cachekey = md5(url); var cachedata = wx.getStorageSync(cachekey); if (cachedata && cachedata.data) { if (option.success && typeof option.success == 'function') { option.success(cachedata); } console.log('failreadcache:' + url); return true; } else { if (option.fail && typeof option.fail == 'function') { option.fail(response); } } }, 'complete': function (response) { // wx.hideNavigationBarLoading(); // wx.hideLoading(); if (option.complete && typeof option.complete == 'function') { option.complete(response); } } }); 还不时伴有 cmdId 10005 errCode 1的白屏出现
开发工具后台返回的是utf-8编码的数组,真机返回的则是ascii的JSON字符串,怎么处理?开发工具返回的:{errno: 0, message: "", data: Array(1)} accountid: nullaction: nullarea: nullback_img: ""commission: "0"createtime: "1587566664"credit: "0.00"displayorder: "0"id: "1"keyword: ""lat: " "linkmen: "总机"linkway: ""lng: " "parent_accountid: nullpic: "images/0/2021/05/UruJzh823UTezeq52QEqRURURyUjJa.png"pid: "0"province: "广东省"qq: " "region_qr: ""region_type: "4"rid: "0"service_url: ""stamp: ""status: "1"thumb: ""uid: "1"uniacid: "4"url: ""villageid: nullyybcommunityid: nullyybstatus: "33"zoneId: null 真机调试返回的:{"errno":0,"message":"","data":[{"id":"1","uniacid":"4","linkmen":"\u603b\u673a","linkway":"","lng":" ","lat":" ","pid":"0","url":"","thumb":"","pic":"images\/1\/2020\/04\/2263323556162116.jpg","province":"\u5e7f\u4e1c\u7701","qq":" ","rid":"0","keyword":"","commission":"0","status":"1","area":null,"stamp":"","credit":"0.00","action":null,"yybstatus":"33","yybcommunityid":null,"accountid":null,"villageid":null,"zoneId":null,"parent_accountid":null,"back_img":"","displayorder":"0","service_url":"","region_type":"4","region_qr":"","uid":"1","createtime":"1587566664"}]}
2021-06-06"{"errno":41009,"message":"\u8bf7\u767b\u5f55","data":""}"
json字符串转json对象为什么小程序 使用JSON.parse 会报错的啊
2021-06-02 RefreshCompany: function () { let that = this; app.util.request({ url: 'entry/wxapp/listCompanies', data: { m: app.siteInfo.m, uniacid: app.siteInfo.uniacid, region_type:wx.getStorageSync('region_type'), }, method : 'post', success: function(res) { if(res.data.data){ that.setData({ listCompanies: res.data.data, //loading: false // 关闭等待框 }) if(that.data.listCompanies){ if(that.data.listCompanies.length == 1){ that.bindCompany(that.data.listCompanies[0].id,that.data.listCompanies[0].title); } } }else{ wx.showModal({ title: '缺少服务单位', content: '请先设置服务的单位后再继续', showCancel:false, success: function (res) { wx.reLaunch({ url: '../index/index', }) } }) } }, complete:function(){ //loading: false // 关闭等待框 } }); },
开发工具返回的是正确的数组,真机则返回string,编码也不一样,有人遇到这样的问题么?Local res: {data: "{"errno":0,"message":"","data":[{"id":"1","uniaci…n_qr":null,"uid":"1","createtime":"1587566664"}]}", profile: {…}, header: {…}, statusCode: 200, cookies: Array(2), …} this: Object Closure (RefreshCompany) Closure Window Global res.data res.data "{"errno":0,"message":"","data":[{"id":"1","uniacid":"2","title":"\u4fe1\u5b9c\u5e02\u4eba\u6c11\u533b\u9662","linkmen":"\u603b\u673a","linkway":"88888888","lng":"0","lat":"0","address":"\u5e7f\u4e1c\u7701\u4fe1\u5b9c\u5e02\u94f6\u6e56\u897f\u8def","pid":"0","url":"www.xysrmyy.cn","thumb":" ","pic":" ","province":"\u5e7f\u4e1c\u7701","city":"\u8302\u540d\u5e02","dist":"\u4fe1\u5b9c\u5e02","qq":" …"
2021-05-28检查过证书没有问题,不是有个腾讯的在证书检测吗?验证通过的,有的iPhone上测试是可以的
wx.request开发版及安卓版可以,但是苹果机及ipad不行,用的是http我也遇到这个问题了,开发版及安卓版可以,但是苹果机及ipad不行,用的是https,把url拿出来在浏览器上可以执行出正确结果 wx.request({ url:getApp().globalData.hosturl + '/getOpenId.do?getId&code=' + code,//自己的服务接口地址 header:{ 'content-type': 'application/json', }, method:'POST', success: function (res) { if (res != '') { } } })
2018-12-23我现在也是遇到这样的问题,IPhone6和ipad都不行,但是有些iPhone6可以,iPhone7也可以啊,
ios部分设备wx.request无法调用- 当前 Bug 的表现(可附上截图) 部分ios手机调用,wx.request无法调用接口显示数据,开发者工具及安卓机正常,TLS版本为1.2 目前已知设备:iphone 7 plus iphone 6 ps:并非每次都不可打开,打开其他小程序同样出现这样问题,但【美团】小程序未出现此情况 - 预期表现 wx.request正常调用,手机都可以正常访问小程序
2018-12-23我也遇到这个问题了,开发版及安卓版可以,但是苹果机及ipad不行,用的是https wx.request({ url:getApp().globalData.hosturl + '/getOpenId.do?getId&code=' + code,//自己的服务接口地址 header:{ 'content-type': 'application/json', }, method:'POST', success: function (res) { if (res != '') { } } })
wx.request不走接口,开发者模式可以,上线后不行wx.request 这个URL 在开发者模式下可以正常访问,更新到正式版 就无效了 [图片]
2018-12-23不是吧?!!问题已被删除????
消息数限制问题!运营者还删除信息!!!作为一个大企业,微信这样的东西真的很垃圾,问题太多了,太不稳定了,微信的营销手段做得好,但是微信确实是烂啊,同样是发微信信息,一个地方行,一个地方出现form id used count reach limit hint,还有很多其他的莫名其妙的问题,运行一下子有,一下子没有的。。。。。。
2018-10-11