- 保存图片到系统相册,用开发工具可以保存成功,但是手机运行保存失败
保存画布canvas生成的图片到系统相册,用开发工具可以保存成功到电脑上,但是手机运行保存失败 用这个方法wx.canvasToTempFilePath生成的临时路径地址 开发工具获取到的临时路径是完整的: http://tmp/wxc4aab796a1d69b6f.o6zAJs6Mps91LY7pUkH7W0JtOtBw.wnt8SCLS0xvI0d0f6b741a4d836a9fe0d4449ca5bb13.png 但是手机运行的话获取的是这样的: wxfile://tmp_0d93d3fded74843bbf6217a7c4b30020.png 所以保存的时候提示:"downloadFile:fail url scheme is invalid" 有知道或者遇到过类似问题的同学吗,帮忙解答一下吧 万分谢谢
2018-11-03 - 域名地址请求有问题,急求解,谢谢
设置的域名接口地址为 https://www.bjhanyizheng.com/api/product/classify 这种, 但是接口请求的时候请求失败 报错: GET https://m.bjhanyizheng.com/api/product/classify net::ERR_NAME_NOT_RESOLVED h@appservice?t=1539074763489:5000 createRequestTask@appservice?t=1539074763489:5000 invoke@appservice?t=1539074763489:5000 invoke@WAService.js:4 V@WAService.js:6 K@WAService.js:6 Wt@WAService.js:7 e@WAService.js:13 (anonymous)@WAService.js:13 (anonymous)@WAService.js:6 (anonymous)@WAService.js:7 (anonymous)@WAService.js:15 (anonymous)@WAService.js:6 request@network.js? [sm]:37 GET@network.js? [sm]:16 getProductType@method.js? [sm]:194 getProductTypes@product.js? [sm]:231 onLoad@product.js? [sm]:59 (anonymous)@WAService.js:19 Xt@WAService.js:20 on@WAService.js:20 un@WAService.js:20 (anonymous)@WAService.js:20 (anonymous)@WAService.js:19 L.emit@WAService.js:8 emit@WAService.js:6 (anonymous)@WAService.js:9 (anonymous)@WAService.js:6 e@appservice?t=1539074763489:5000 n.registerCallback.t@appservice?t=1539074763489:5000 l.forEach.t@appservice?t=1539074763489:5000 (anonymous)@appservice?t=1539074763489:5000 i.onmessage@appservice?t=1539074763489:5000 很奇怪www变成了m ,不知道是什么原因,难道是域名地址配置的时候出错了吗? 请帮忙解答一下,谢谢。
2018-10-09