- 订阅消息接口调用成功用户却收不到消息?
订阅消息接口调用成功用户却收不到消息? {"id":2,"app_name":"\u98de\u9e1f\u5145\u7535","app_id":"wx49ddb36aada9a41e","app_secret":"03f0db22f647d05a022423f5a19db53e","mch_id":"1604093463"} {"touser":"ozIIT5FyvFNngp4iQNA3sJdHIhX0","template_id":"JS4IstViIbiKBHTZb9S1roYr6D3Gi0xsdx05dLV0tvY","page":"\/pages\/cd_logs\/cd_logs","miniprogram_state":"formal","lang":"zh_CN","data":{"character_string2":{"value":"6264AA2CAC1"},"thing14":{"value":"60000017-4"},"thing11":{"value":"\u5f00\u59cb\u5145\u7535(209.0\u74e6)"},"time27":{"value":"2022-04-24 09:38:54"},"thing12":{"value":"\u9884\u8ba1\u5145\u7535300\u5206"}}} {"errcode":0,"errmsg":"ok","msgid":2368474198362341377}2022-04-24 09:39:06
2022-04-24 - 小程序微信支付拉不起来?参数都是增缺德
微信支付拉不起来。 看图和代码 [图片] [图片] openVip: function () { let that = this; console.log(that.data.id) if (that.data.id <= 0) { app.warning('请选择会员类型'); return; } wx.showLoading({ title: '正在生成订单', mask: true }) app.request('api/vip/submit', {id: that.data.id}, function (data, ret) { console.log(data) wx.hideLoading() wx.requestPayment({ 'timeStamp': data.timeStamp, 'nonceStr': data.nonceStr, 'package': data.package, 'signType': data.signType, 'paySign': data.paySign, 'success': function (res) { console.log('321313123123123213123123'); if (res.errMsg = "requestPayment:ok") { wx.showToast({ title: '支付成功', icon: 'success', duration: 1500 }) setTimeout(() => { wx.navigateBack({ delta: 1 }) }, 1500) } }, 'fail': function () { wx.showToast({ title: '支付失败', icon: 'error', duration: 1500 }) setTimeout(() => { wx.navigateBack({ delta: 1 }) }, 1500) } }) }, function (data, ret) { wx.hideLoading() app.error(ret.msg); }); },
2021-01-12