liangtongzhuo
artsungames: cPickle 抱歉 python 我不太了解, 我大概了解你的目的就是 key 为 id,缓存 vlaue 是查询的数据。
我看到引入 import AV from 'leancloud-storage/dist/av-weapp.js'; 微信小程序没有任何问题, 但是百度小程序提醒 Error: wx is not defined [N/A POST https://my-asmr.com/1.1/functions/home ] at vendors.js:579 666 发送请求的代码报错了,这样引入是不支持 taro 吗? 需要我引入的时候判断是吗?
解决了,我有新引入了适配器 if (process.env.TARO_ENV == 'swan') { const adapters = require(' @leancloud /platform-adapters-baidu') AV.setAdapters(adapters) }
import AV from 'leancloud-storage/dist/av-weapp.js' const adapters = require('@leancloud/platform-adapters-baidu') AV.setAdapters(adapters) 版本: " @leancloud /platform-adapters-baidu": "^1.0.0", "leancloud-storage": "^4.6.1", 在虚拟机上都正常,真机手机上测试会有下面问题: image.png 2774x1382 302 KB Uncaught (in promise) Er…
任何请求都是这样
image.png 1894x1132 217 KB 这样能看出问题吗?
虚拟机正常 image.png 2292x1420 244 KB
现在能发现问题吗?
你好,感谢回复 按照文档修改了引入 版本升级到最新,还是有类似问题。 我这边比较着急了,已经过去一两周了
非常感谢,哈哈哈哈哈哈。可以了