- 开发者工具清除网络缓存清不掉之前获取的数据?
[图片] 怎么不用缓存啊,更新数据自己都看不到,怎么开发。。。
2020-10-21 - img.scanQRCode现在还有次数限制吗?
业务中需要多次调用img.scanQRCode接口,问一下现在还有每天500次的次数限制吗?
2020-04-28 - 云函数在本地测试成功,云端调试和调用时返回结果为空怎么办?
云函数代码: // 云函数入口文件 const cloud = require('wx-server-sdk') const TextToSVG = require('text-to-svg'); const svg2png = require("svg2png"); const textToSVG = TextToSVG.loadSync('FuturaNDforNike365Cn-XBd.ttf'); cloud.init() // 云函数入口函数 exports.main = async (event, context) => { return new Promise((resolve, reject) => { const svg1 = textToSVG.getSVG(event.words, { x: 0, y: 0, fontSize: 24, anchor: 'top', }); svg2png(svg1).then(buffer1 => { let wordBase64 = "data:image/png;base64," + buffer1.toString('base64'); let result = { data: wordBase64, msg: "调用成功", words: event.words } console.log(wordBase64); resolve(result) }) }) } 本地调试: [图片] 调用时返回: [图片] 云端测试: [图片]
2020-04-09