- wx.openChannelsLive可以跳转到非同主体的视频号直播间吗?
wx.openChannelsLive可以跳转到非同主体的视频号直播间吗? 目前是可以跳转到和小程序同主体认证完成的视频号直播间的,可以跳转到其他主体认证的视频号直播间吗?
11-06 - wx.uploadFile在华为P70型号手机中上传失败?
//将本地资源上传到服务器 var uploadTask = wx.uploadFile({ url: upDatas.url || app.globalData.swtBase + 'upimg.php?act=main', filePath: filePath, name: 'fileUrl', header: { userToken: wx.getStorageSync('userToken') || '', //'content-type': 'multipart/form-data' }, formData: upDatas, success: function (res) { var data = res.data ? JSON.parse(res.data) : {} var code = data.code || 0 var msg = data.msg || '' var picurl = data.picurl || '' //强制发起错误日志 if (msg == 'REQUEST FAILED' || !msg) { https_debug(that, upDatas, res.data) } if (code == 999) { wx.navigateBack() tokenAdmin(true) return } if (res.statusCode != 200 || !res.data) { msg = '图片上传失败,稍后再试' } if (!picurl) { code = 0 msg += '第' + upImgsFinishCount + '张图片上传失败。' https_debug(that, upDatas, { msg: `失败了:${res}` }) } if (code != 200) { if (upDatas.loading == 'customize') { that.setData({ loading: false, }) } else if (upDatas.loading !== false) { wx.hideLoading() } wx.showModal({ title: '提示', content: msg, showCancel: false, }) https_debug(that, upDatas, res) return } //储存已上传图片 var filePathEncode = filePath.replace(/[^0-9a-zA-Z]/g, '') that.setData({ [`tempUploadFiles.${filePathEncode}`]: picurl, [`formDatas.list[${i}].pic[${j}]`]: picurl, }) //是否继续上传 if (upImgsCount <= upImgsFinishCount) { if (upDatas.loading == 'customize') { //自定义加载DOM } else if (upDatas.loading !== false) { wx.hideLoading() } if (callback !== null) callback(that) } else { if (tempPic.length <= j + 1) { upDatas.i = i + 1 upDatas.j = 0 } else { upDatas.i = i upDatas.j = j + 1 } _uploadImages(app, that, upDatas, callback) } }, fail: function (err) { console.log(err) wx.showModal({ title: '提示', content: '服务端错误', showCancel: false, success: function () { wx.navigateBack() }, }) }, })
10-29 - wx.chooseLocation一直转圈圈?
//获取位置 chooseLocation(event) { var that = this var key = event.currentTarget.dataset.key var formDatas = that.data.formDatas var obj = { success: function (res) { //console.log(res) var url = app.globalData.swtBase + 'config.php?act=mapInfo&latitude=' + res.latitude + '&longitude=' + res.longitude + '' util.http(that, url, function (that, data) { var mapInfo = data.mapInfo if (mapInfo.status == 0) { formDatas.latitude = res.latitude formDatas.longitude = res.longitude formDatas[key] = res.name //解析获得 formDatas.d_big_txt = mapInfo.province formDatas.d_small_txt = mapInfo.city formDatas.d_xiao_txt = mapInfo.district that.setData({ formDatas }) } }) } } if (formDatas.latitude) { obj.latitude = formDatas.latitude } if (formDatas.latitude) { obj.longitude = formDatas.longitude } wx.chooseLocation(obj) },
08-09 - 现在小程序的直播功能暂停开放了吗?
现在小程序的直播功能暂停开放了吗,怎么找不到开通入口了?
2023-12-12