Results 10 comments of jacksplwxy

我是有两种情况出现无效信道: 1、业务服务器推送消息时,有时候node.js报错:(node:2927) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ERR_UNKNOWN_TUNNEL_ERROR,这时小程序端收不到推送的消息,并且此时的信道有很大可能被判定为无效信道。 2、正常连接的信道被莫名其妙的判断为无效信道,并且此时小程序端也收不到信息。 所以我没有根据无效信道去维护用户-信道ID映射列表,而是业务完了再去清除用户信息。对于出现无效信道前端不能收到消息的情况,我会隔几秒钟尝试再次发送,有时能发送成功有时不能,所以此时被判定的无效信道ID其实有可能还是有效的。 @jas0ncn 上面提到的nodejs报错定位不到问题,不知如何处理掉?另外, 小程序端wx.connectSocket()发起连接请求后有时长时间监听不到open成功,这是什么原因?

一台服务器也可以啊,https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-login.html#wxchecksessionobject

我是修改了login.js文件,拒绝后弹出重新授权模态框: fail: function (userError) { //用户拒绝授权后,打开设置,让用户进行授权 wx.showModal({ title: '登录失败!', content: '请允许获取您的公开信息', success: (res) => { wx.openSetting({ success: (res) => { if (res.authSetting['scope.userInfo']) { wx.getUserInfo({ success: function (userResult) { callback(null, {...

> I think prototype pattern is reduce resource consumption. > Use`Object.create(Prototype.prototype) ` wouldn't it be better? That's what I thought.Sometimes,clone a object is more efficient than new,so we can use...

> > > I think prototype pattern is reduce resource consumption. > > > Use`Object.create(Prototype.prototype) ` wouldn't it be better? > > > > > > That's what I thought.Sometimes,clone...

> This issues are occurred with both npm, yarn also. > > I figured this issues with remove all the brew, nvm and re install with. > > However, there...