- wx.chooseLocation真机不能显示,开发工具可以显示,真机开启调试可以显示!
wx.chooseLocation真机未开启调试不能显示,开发工具可以显示,真机开启调试可以显示! 这个bug在电脑端小程序也有同样问题。也可以提供录屏。这个很神奇。 wx.chooseLocation({ success(res){ maps.getlocation(res).then(result=>{ that.setData({'corpinfo.corp_address_info':result}) }) } }) [图片] [图片]
2022-06-06 - 为什么wx.navigateBack 调用eventChannel会失败
为什么wx.navigateBack 调用eventChannel会失败???? wx.navigateBack({ delta: 1, success: function(res) { res.eventChannel.emit('pagestaffchoose', data) } }) return MiniProgramError Cannot read property 'emit' of undefined TypeError: Cannot read property 'emit' of undefined at success (http://127.0.0.1:57434/appservice/pages/xxx/xxxxx/xxxx.js:63:30) at Function.forEach.s.<computed> (http://127.0.0.1:57434/appservice/__dev__/WAService.js?t=wechat&s=1646121741371&v=2.19.1:2:2450694) at <api navigateBack success callback function> at Object.success (http://127.0.0.1:57434/appservice/__dev__/WAService.js?t=wechat&s=1646121741371&v=2.19.1:2:114522) at r (http://127.0.0.1:57434/appservice/__dev__/WAService.js?t=wechat&s=1646121741371&v=2.19.1:2:1191114) at http://127.0.0.1:57434/appservice/__dev__/WAService.js?t=wechat&s=1646121741371&v=2.19.1:2:1191297 at v (http://127.0.0.1:57434/appservice/__dev__/WAService.js?t=wechat&s=1646121741371&v=2.19.1:2:1191301) at http://127.0.0.1:57434/appservice/__dev__/WAService.js?t=wechat&s=1646121741371&v=2.19.1:2:1192725 at http://127.0.0.1:57434/appservice/__dev__/asdebug.js:1:48487 at C (http://127.0.0.1:57434/appservice/__dev__/asdebug.js:1:48142)
2022-03-01 - wx.saveImageToPhotosAlbum,再用户拒绝之后不会再次提醒授权
wx.saveImageToPhotosAlbum不会再次提示用户授权,是否有方法唤起用户再次授权? 复现方法:可以先拒绝授权,然后选择保存图片,测试。
2021-08-14 - pc 端 wx.chooseMessageFile上传文件问题啥时候解决?只需要支持pdf即可
PC端微信小程序文件上传?pc 端 wx.chooseMessageFile上传文件问题啥时候解决?
2021-07-28 - 真机Cannot read property 'emit' of undefined
模拟器没一点问题,真机各种问题 const eventChannel = that.getOpenerEventChannel() eventChannel.emit('acceptDataFromSelectPositionPage', postdata) wx.navigateBack({ elta: 1 }) 这样emit都能undefined?上线几个月都没问题,这两天天天出问题? [图片]
2021-04-23 - 微信支付v3 验证回调签名的php demo有没有?
微信支付v3。回调签名认证一直失败。支付后的回调验证,已经按照他一模一样处理了,还是不行。 https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/qian-ming-yan-zheng
2020-10-23 - 微信支付v3 验证回调签名的php demo有没有?
微信支付v3。回调签名认证一直失败。支付后的回调验证,已经按照他一模一样处理了,还是不行。 https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/qian-ming-yan-zheng
2020-10-23 - 开启一个页面多层canvas之后,wx.canvasToTempFilePath失效
wx.canvasToTempFilePath({ x: x,y: y,width: width,height: height,destWidth: width,destHeight: height ,canvas: canvas, success: (res) => { console.log(res) }, fail(res){console.log(res)}, complete(res){console.log(res)} }) <canvas type="2d" id="canvas1"></canvas> <canvas type="2d" id="canvas2"></canvas> 第一个canvas,wx.canvasToTempFilePath渲染有返回, 第二个canvas,success,fail,complete,都没任何返回。
2020-09-20 - canvas.toDataURL is not a function?
想实现canvas do,undo的效果,发现canvas.toDataURL is not a function? do(e){ var that=this wx.createSelectorQuery().select('#canvas'+that.data.list.genre).fields({ node: true, size: true }).exec( (res)=>{ const canvas = res[0].node that.data.canvas.history=[] that.data.canvas.history.push(canvas.toDataURL('image/png',1)) } ) }[图片]
2020-09-16 - 微信公众号,服务器配置,token一直验证失败,怎么办?
appid:wx78808602da8913f8 url:https://api.muaaa.cn/apii/acswechat/opindex public function opindexAction(){ header("Content-type: text/html; charset=utf-8"); //valid signature , option if ($this->checkSignature()) { echo $_GET["echostr"]; exit; } } //验证所有者使用 private function checkSignature(){ header("Content-type: text/html; charset=utf-8"); $signature = $_GET["signature"]; $timestamp = $_GET["timestamp"]; $nonce = $_GET["nonce"]; $token = 'muaaawechattoken'; $tmpArr = [$token, $timestamp, $nonce]; sort($tmpArr); $tmpStr = implode('',$tmpArr); $tmpStr = sha1( $tmpStr ); if( $tmpStr == $signature ){ return true; }else{ return false; } }
2020-05-01