- 电脑端小程序取消支付提示没有cancel?
电脑端小程序调用微信支付并取消时,为什么提示[图片]?不应该是requestPayment:fail cancel吗
06-28 - getUnlimitedQRCode接口scene如何传递多个参数?
调用getUnlimitedQRCode获取小程序码时,scene传递参数可以是“a=1&b=2&c=3”这种形式吗?我在体验版小程序里面打印数据,只有一个scene=37,这是为什么?然后看社区里面好像说正式版不识别“=”是吗?
06-28 - 使用skyline生成的海报无法下载?
在某一个页面使用skyline下载海报时,开发工具提示takeSnapshot:fail webview renderer is not supporte,需要我将小程序的线上最低基础库改成2.29.2才能下载吗? page.json的代码为:"navigationBarTitleText": "详情", "usingComponents": {}, "renderer": "skyline", "navigationStyle":"custom", "componentFramework":"glass-easel" app.json的部分代码为: "lazyCodeLoading": "requiredComponents", "rendererOptions": { "skyline": { "defaultDisplayBlock": true, "defaultContentBox": true } } page.js下载海报的代码为: this.createSelectorQuery().select("#view") .node().exec(res => { const node = res[0].node node.takeSnapshot({ // type: 'file' 且 format: 'png' 时,可直接导出成临时文件 type: 'arraybuffer', format: 'png', success: (res) => { console.log(123) const f = `${wx.env.USER_DATA_PATH}/hello.png` const fs = wx.getFileSystemManager(); fs.writeFileSync(f, res.data, 'binary') wx.showToast({ title: '保存成功' }) wx.saveImageToPhotosAlbum({ filePath: f, success() { wx.showToast({ title: '已保存到相册', icon: 'success', duration: 2000 }) }, fail(err) { if (err.errMsg === "saveImageToPhotosAlbum:fail auth deny") { that.secondGetPhoteAuthor(); } else { showToast("您已拒绝授权相册权限,请截屏保存分享"); } }, complete() { wx.hideLoading() } }) }, fail(res) { console.log("takeSnapshot fail:", res) wx.hideLoading() } }) })
06-23 - 电脑端微信小程序打开webview页面为啥会出现横向滚动?
电脑端微信小程序打开webview页面会出现页面横向滚动的情况,即需要横向滚动才能查看完整页面,手机端小程序则没有这个问题,请问该如何解决这个问题?开发者工具上面查看webview发现上面有style元素以及对应的宽高,但是我并没有设置宽高
2023-10-12 - 开发者工具使用toFixed时数据不显示,也不报错?
开发者工具版本号RC1.05.2107221;在调试基础库>=2.20.2时,所有使用toFixed来保留两位小数的数值都不显示,目前安卓苹果真机还没有发现有这个问题,小米mix2s,基础库为2.23.2,iPhoneXR,基础库2.21.4,这两款真机目前没有问题,这个只是开发者工具的bug吗?
2022-03-25 - php调用wxacode.getUnlimited返回null?
下面是我的程序代码,打印$getwxacodeunlimit的值一直为null <?php $data=['scene'=>'test=1','width'=>430]; $data=json_encode($data); $getwxacodeunlimit=$this->https_request($this->getwxacodeunlimit,$data); var_dump($getwxacodeunlimit);die; function https_request($url,$data=null){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); if($data){ curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); } $result = curl_exec($ch); $info = json_decode($result); curl_close($ch); //释放资源 return $info; }
2021-11-29 - urllink.generate生成的链接打不开体验版和开发版?
$data=["query"=>"param=1","env_version"=>"trial","is_expire"=>true,"expire_type"=>1,"expire_interval"=>1]; 我将env_version设置为“trial”或“develop”,生成链接后用浏览器打开,全都跳转到了正式版小程序,请问如何才能跳转到体验版或开发版,我在测试通过link跳转小程序是否能获取query参数,这样就无法测试了
2021-11-18 - 微信开发者工具无法同时打开小程序和公众号网页?
当我在打开小程序的情况下,再打开公众号网页,开发者工具就会直接闪退,先打开公众号网页,再打开小程序则无问题。当前开发者工具版本号RC 1.05.2107221
2021-09-16 - 为什么要解密wx.getUserProfile的数据?
wx.getUserProfile返回的加密数据里的openid和unionid不是通过wx.login就可以直接获取了吗,为什么还要去解密?我看到一篇帖子https://developers.weixin.qq.com/community/develop/doc/000006006705102a90fb5333756c00?_at=1575747080082说这样做增加了安全性,提高了数据的可靠性,请问是出于这个目的吗?
2021-07-15 - 如何计算小程序打开文件后在文件页面的停留时长?
项目有一个需求,需要统计用户学习时长。用户在小程序打开pdf文件时,开始计时,当用户关闭pdf文件时,计时结束。我现在是先把文件下载到本地,然后用wx.openDocument函数打开pdf文件,此时pdf文件是由微信自带的浏览器打开的,我该如何监听它是否关闭?
2021-06-17