你好,请移步企微官方讨论区:https://developer.work.weixin.qq.com/community/question
企业微信小程序开发,调用unzip api解压文件,报错 nopermission什么原因?[图片] fs.unzip({ zipFilePath: fileTmpPath, //源文件路径 targetPath: wx.env.USER_DATA_PATH + '/' + item.fileId, //解压后文件所在路径 success(unzipRes) { console.log(7878, unzipRes) wx.hideLoading() //解压成功后操作 const unzipedDir = wx.env.USER_DATA_PATH + '/' + item.fileId + '/' + item.fileName.split('.')[0] fs.readdir({ dirPath: unzipedDir, //注:这里的路径是你想查看的文件目录路径 success(readRes) { console.log(9393, readRes) if (readRes.errMsg === 'readdir:ok') { let unzipFiles = [] readRes.files.forEach(ele => { unzipFiles.push({ fileName: ele, filePath: unzipedDir + '/' + ele }) }) var currentData = that.data.dataList const index = currentData.findIndex(curr => curr.fileId == item.fileId) currentData[index].unzipFiles = unzipFiles console.log(107107, currentData) that.setData({ dataList: currentData }) wx.hideLoading() } }, fail(readErr) { console.log(9797, readErr) wx.hideLoading() //失败的操作 } }) }, fail(unzipErr) { console.log(8181, unzipErr, wx.env.USER_DATA_PATH) wx.hideLoading() //解压失败后操作 }
星期二 18:00你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
openStickerSetView 使用这个接口在iphone 15 Pro Ma无法打开表情包?在iphone 15 Pro Max 无法打开,报错。其他机型都可以。报错信息如下 [图片] 代码这样的 [图片]
星期二 17:25打开调试看看有没有报错 在正式版打开调试还有一种方法,就是先在开发版或体验版打开调试,再切到正式版就能看到vConsole
华为手机-小程序-偶尔出现无法定位,是所有小程序都无法定位,什么问题出现好几次了,基本看到的都是华为手机,微信聊天定位没问题,所有小程序都定位不了,没有走回调方法
星期二 16:50请提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
skyline模式下click事件返回的 event.detail 对象不返回clientX属性skyline模式下click事件返回的 event.detail 对象不返回clientX,clientY属性,现在变成x,y,导致页面点击事件报错无法点击,能不能快速修复下
星期二 16:41可以打开调试看看有没有报错
海外手机无法访问开发测试中的体验版小程序?我在日本的海外客户想通过手机调试开发中的体验版小程序,一直白屏,开发服务器的IP白名单也开放了,请问这个原因是?
星期二 16:39[图片]
错误码不全https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/qr-code/getUnlimitedQRCode.html [图片] 还有这种错误码,但是没有记录
星期二 16:37请提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
滚动到顶部之后的回弹效果怎么取消啊?<scroll-view class="scroll" scroll-y="{{isFullScreen?true:false}}" scroll-x="{{false}}" bindscroll="handleScroll" bounces="{{false}}" enhanced="{{true}}" > </scroll-view> 就是有一个scrollview的列表,在滚动到最上方的时候,继续下拉,会出下一个回弹的,橡皮筋的效果。这个怎么能取消吗。json里的disableScroll,enablePullDownRefresh,scrollview的enhanced,bounces 都试过了都不行。
星期二 16:00https://developers.weixin.qq.com/community/develop/doc/0008ac5f24cdc83ea113bbaa96c001
IOS系统 微信升级到8.0.57版本后,video组件无法循环播放(设置了loop属性)IOS系统 微信升级到8.0.57版本后,video组件无法循环播放(设置了loop属性),8.0.56及之前版本是好的。
04-01请提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
这个属性设置隐藏不生效show-scrollbar
03-30重启项目试试
使用wx.scanCode扫码跳转后报错?wx.scanCode({ onlyFromCamera: true, scanType: ['barCode', 'qrCode'], success(res) { wx.reLaunch({ url: '/pages/mine/index' }) }, fail: function (res) { console.log('cancel scan code') }, }) [图片] appid是wx74c3b58cbacda2b2,切换其他几个appid不会报这个错误,只有这个ID,请问是什么问题
03-30