- 为什么微信商户号里发起转账没权限?
微信商户号里的菜单:交易中心->商家转账记录页面,点击发起转账按钮提示没权限 还有就是我用api发起转账到用户微信零钱,为什么在该页面的查询结果里没记录
星期三 10:25 - wx.getBluetoothDevices有很多手机机型获取不到设备?
[图片] 这个是我的手机在调用方法wx.getBluetoothDevices获取蓝牙热敏打印机时得到的数据,怎么都获取不到设备,几天前还能正常获取,但是突然就变这样了,我保证我的手机是没问题的,因为我用热敏打印机提供的app,是可以正常连接到打印机打印的。 [图片] 这个是我朋友调用wx.openBluetoothAdapter就直接失败了,我确保他手机蓝牙是正常开启的。 以下是我的代码: getPrintData(){ wx.openBluetoothAdapter({ success: (res) => { console.log("开启蓝牙适配器成功"); wx.startBluetoothDevicesDiscovery({ //services: ['xxxx'], // 用来过滤掉其他蓝牙设备 allowDuplicatesKey: false, interval: 2000, success: (res) => { console.log(res); console.log("开启蓝牙设备成功"); setTimeout(function(){ wx.getBluetoothDevices({ success: function (res) { console.log(res); console.log("获取蓝牙设备OK"); wx.onBluetoothDeviceFound(({ devices }) => { console.log(devices); console.log("找到的设备"); }) }, fail(res) { //self.blueMsg(res); }, }); },3000); wx.onBluetoothDeviceFound(({ devices }) => { console.log(devices); console.log("找到的设备"); }) } }); }, fail:(res)=>{ console.log(res); console.log("开启蓝牙设备失败"); } }); }
2021-06-07