解决了吗, 还是无法上传文件。
企业微信小程序怎么实现选择文件上传?企业微信小程序怎么实现选择除图片视频之外的文件上传?
05-30一样, 我的好几个人检查也出现这个问题了。 公司名:山西鹿角文化传媒有限公司
备案时工商数据对比不通过,已检查不存在空格和字母问题,如何解决?备案时工商数据对比不通过,已检查不存在空格和字母问题,如何解决?[图片]
05-29官方的怎么注册了?
想做人脸实名认证的功能,活体采集和人像认证需要用微信的吗?想做人脸实名认证的功能,活体采集和人像认证需要用微信的吗?还是说活体采集用微信的,人像认证可以用第三方的
2022-12-28手机型号主要集中在红米和OPPO手机上。 蓝牙和位置定位都打开过,之前使用一直很好。 [图片][图片]
wx.startBluetoothDevicesDiscovery 无法调用成功,部分手机出现?wx.startBluetoothDevicesDiscovery近期用户反馈显示调用失败,请帮忙查下什么原因,我们看看最近微信有版本升级,请问是否升级造成的? {"errno":1509009,"errCode":-1,"errMsg":"startBluetoothDevicesDiscovery:fail:location service is disabled","isDiscovering":false}
2021-10-10解决了吗?哥们
为什么小程序的蓝牙开启后一直报10008,discovering 为false[图片] [图片] [代码]/*开启蓝牙设备*/[代码][代码] [代码][代码]openBluetoothAdapter: [代码][代码]function[代码] [代码]() {[代码] [代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.showLoading({[代码][代码] [代码][代码]title: [代码][代码]'开启蓝牙适配'[代码][代码] [代码][代码]});[代码][代码] [代码][代码]wx.openBluetoothAdapter({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]"初始化蓝牙适配器"[代码][代码]);[代码][代码] [代码][代码]console.log(res);[代码][代码] [代码][代码]that.getBluetoothAdapterState();[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码](err) {[代码][代码] [代码][代码]console.log(err);[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'蓝牙初始化失败'[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'success'[代码][代码],[代码][代码] [代码][代码]duration: 2000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]setTimeout([代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]wx.hideToast()[代码][代码] [代码][代码]}, 2000)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]wx.onBluetoothAdapterStateChange([代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]var[代码] [代码]available = res.available;[代码][代码] [代码][代码]if[代码] [代码](available) {[代码][代码] [代码][代码]that.getBluetoothAdapterState();[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]/*获取本机蓝牙适配器状态*/[代码][代码] [代码][代码]getBluetoothAdapterState: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.getBluetoothAdapterState({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]var[代码] [代码]available = res.available,[代码][代码] [代码][代码]discovering = res.discovering;[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]if[代码] [代码](!available) {[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'设备无法开启蓝牙连接'[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'success'[代码][代码],[代码][代码] [代码][代码]duration: 2000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]setTimeout([代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]wx.hideToast()[代码][代码] [代码][代码]}, 2000)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]if[代码] [代码](!discovering) {[代码][代码] [代码][代码]that.startBluetoothDevicesDiscovery();[代码][代码] [代码][代码]that.getConnectedBluetoothDevices();[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]startBluetoothDevicesDiscovery: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.showLoading({[代码][代码] [代码][代码]title: [代码][代码]'蓝牙搜索'[代码][代码] [代码][代码]});[代码][代码] [代码][代码]wx.startBluetoothDevicesDiscovery({[代码][代码] [代码][代码]services: [],[代码][代码] [代码][代码]allowDuplicatesKey: [代码][代码]false[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]if[代码] [代码](!res.isDiscovering) {[代码][代码] [代码][代码]that.getBluetoothAdapterState();[代码][代码] [代码][代码]}[代码][代码] [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]that.onBluetoothDeviceFound();[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码](err) {[代码][代码] [代码][代码]console.log(err);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码] [代码] [代码][代码]},[代码][代码] [代码][代码]/**获取在小程序蓝牙模块生效期间所有已发现的蓝牙设备,包括已经和本机处于连接状态的设备。*/[代码][代码] [代码][代码]getBluetoothDevices: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.getBluetoothDevices({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码] [代码] [代码][代码]},[代码][代码] [代码][代码]/**监听寻找到新设备的事件*/[代码][代码] [代码][代码]onBluetoothDeviceFound: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.onBluetoothDeviceFound([代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]'new device list has founded'[代码][代码])[代码][代码] [代码][代码]console.log(res);[代码][代码] [代码][代码]if[代码] [代码](res.devices[0]) {[代码][代码] [代码][代码]var[代码] [代码]name = res.devices[0][[代码][代码]'name'[代码][代码]];[代码][代码] [代码] [代码] [代码][代码]var[代码] [代码]deviceId = res.devices[0][[代码][代码]'deviceId'[代码][代码]];[代码][代码] [代码][代码]that.deviceId = deviceId;[代码][代码] [代码][代码]console.log(that.deviceId);[代码][代码] [代码][代码]that.startConnectDevices();[代码][代码] [代码] [代码] [代码][代码]}[代码][代码] [代码][代码]})[代码] [代码] [代码][代码]},[代码][代码] [代码][代码]/**根据 uuid 获取处于已连接状态的设备*/[代码][代码] [代码][代码]getConnectedBluetoothDevices: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]that.createBLEConnection()[代码][代码] [代码][代码]wx.getConnectedBluetoothDevices({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]//[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码]
2021-10-10