订阅一次发送一次。还有你是在哪个版本(开发、体验、正式)订阅的?推送消息打开的默认是正式版
一次性订阅消息后台推送一直是43101?{"errcode":43101,"errmsg":"user refuse to accept the msg rid: 66f62633-37906e90-07b0cac6"} 2024-09-27 11:27:47.661 WARN 5732 --- [io-22919-exec-6] wx.getSetting({ withSubscriptions: true, success(res) { console.log(res.subscriptionsSetting) if (res.subscriptionsSetting.mainSwitch) { let itemSettings = res.subscriptionsSetting.itemSettings; console.log('itemSettings', itemSettings) if (itemSettings) { if (itemSettings['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] != 'accept') { wx.showModal({ title: '提示', content: '检测到您未开启订阅消息,是否前往设置?', success(res) { if (res.confirm) { wx.openSetting({ withSubscriptions: true, success: (openSetRes)=> { wxSubmsgFail(openSetRes) }, fail: function(err) { } }); } } }) } uni.requestSubscribeMessage({ tmplIds: ['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'], success(res) { if (res.errMsg == 'requestSubscribeMessage:ok') { if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'accept') { _saveOrUpdate(true) uni.showToast({ title: '订阅消息成功~' }); console.log('requestSubscribeMessage',true) } if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'reject') { _saveOrUpdate(false) uni.showToast({ title: '订阅消息失败~' }); console.log('requestSubscribeMessage',false) } } } }) } else { uni.requestSubscribeMessage({ tmplIds: ['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'], success(res) { if (res.errMsg == 'requestSubscribeMessage:ok') { if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'accept') { _saveOrUpdate(true) uni.showToast({ title: '订阅消息成功~' }); console.log('requestSubscribeMessage',true) } if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'reject') { _saveOrUpdate(false) uni.showToast({ title: '订阅消息失败~' }); console.log('requestSubscribeMessage',false) } } } }) } } else { if (res.subscriptionsSetting.itemSettings) { wx.showModal({ title: '提示', content: '检测到您未开启订阅消息,是否前往设置?', success(res) { if (res.confirm) { wx.openSetting({ withSubscriptions: true, success: (openSetRes)=> { wxSubmsgFail(openSetRes) }, fail: function(err) { } }); } } }) } uni.requestSubscribeMessage({ tmplIds: ['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'], success(res) { if (res.errMsg == 'requestSubscribeMessage:ok') { if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'accept') { _saveOrUpdate(true) uni.showToast({ title: '订阅消息成功~' }); console.log('requestSubscribeMessage',true) } if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'reject') { _saveOrUpdate(false) uni.showToast({ title: '订阅消息失败~' }); console.log('requestSubscribeMessage',false) } } } }) } } })
2024-09-27web-view 不支持 支付;只能跳回小程序 使用小程序支付
在小程序中尝试调用WeixinJSBridge.invoke但失败,如何能调用wechatPay?在小程序中使用web-view调起网页,然后在网页中尝试调用WeixinJSBridge.invoke('getBrandWCPayRequest',{...})但失败,没有成功调用wechatPay。 在使用同一段代码的情况下,倘若使用不校验合法域名、web-view(业务域名)作测试,则能成功调用wechatPay。 原因为何,以及该如何排难/解决? 已检查过并确认 jweixin-1.6.0.js 储存并从已申请的业务域名上调出使用。
2024-09-27[图片] 如果类目符合的话,在此社区发帖,格式说明如下图,至于能否通过也是个未知数(大概率会被拒绝);可以考虑用公众号模板消息或者短信 [图片]
怎么申请小程序长期订阅消息模板?[图片]
2024-09-27用户填写。公众号没有获取手机号的方法
用户关注公众号之后,需要如何获取到用户的手机号?用户关注公众号之后,需要如何获取到用户的手机号
2024-09-27微信小程序中 可以使用web-view 打开链接,但是需要配置业务域名
在微信小程序中能用微信浏览器打开一个链接吗?在微信小程序中能用微信浏览器打开一个链接吗?
2024-09-26非必须。有文字和无文字的点击区域可能不一样哦
wx-open-launch-weapp必须写跳转小程序这5个字?wx-open-launch-weapp 中的<button class="wx-btn">跳转小程序</button> 做跳转自定义按钮样式,不想用微信默认的,发现去掉这5个字就不跳转小程序了...........
2024-09-26正常啊,未备案的都会被限制的
小程序刚上线还没备案显示涉嫌违规,被搜索功能已被限制?属于正常吗?小程序刚上线还没备案显示小程序涉嫌违规,被搜索功能已被限制?属于正常吗?
2024-09-24看下这个https://developers.weixin.qq.com/community/minihome/doc/000c2c34068880629ced91a2f56001
为什么获取用户信息 接口有些用户的nickname 固定是 "微信用户"https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN 这个接口获取用户信息 中 有些用户的信息 nickname 固定是 "微信用户",请问是什么原因造成的?用户也点击了授权
2024-09-23进入了快照模式,公告链接 https://developers.weixin.qq.com/community/minihome/doc/000c2c34068880629ced91a2f56001 [图片]
微信网页开发,授权获取用户信息大部分用户头像昵称正常,个别用户一直返回"微信用户"?微信返回的数据如下: { "nickname": "微信用户", "sex": 0, "province": "", "city": "", "country": "", "headimgurl": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q3auHgzwzM6cp2WMkYmiaBZYVT6oUr2W4r4o7CQgzqStQ0BibiaEXwdEnMW9yicJd0AtciaImYrz0icibZ6rYUnQjweZQ/132", "privilege": [], "unionid": null, "openid": "***" }
2024-09-23具体问下 富有 就知道了,他要啥你们提供啥。
关于调用第三方支付得问题?现在是调用富友得支付,小程序端下单->富友端->返回支付信息 通过JSAPI调起支付这种小程序端还需要去申请商家或者微信支付吗
2024-09-23