试试在开发工具中重新登录微信
打开云开发控制台:“检查环境” 发生了错误......“检查环境” 发生了错误: Error: AuthFailure.TokenFailure, Token verification failed. Please check your Token is correct. (cd0c079f-130e-42c8-a5bc-b2b39936745b)
2019-05-10我解决了,文件存在 /tmp 目录下就ok,文档里面有说明的
使用云开发怎么获取小程序码运用request获取小程序码二进制流后,想要存储到云开发的文件管理,但一直提示文件路径是read-only file system,有哪位大哥知道咋整吗 [代码]return[代码] [代码]new[代码] [代码]Promise((resolve, reject) => {[代码][代码] [代码][代码]let stream = request({[代码][代码] [代码][代码]url: url,[代码][代码] [代码][代码]method: [代码][代码]"POST"[代码][代码],[代码][代码] [代码][代码]headers: {[代码][代码] [代码][代码]"content-type"[代码][代码]: [代码][代码]"application/json"[代码][代码],[代码][代码] [代码][代码]"content-Length"[代码][代码]: JSON.stringify(data).length[代码][代码] [代码][代码]},[代码] [代码] [代码][代码]body: json[代码][代码] [代码] [代码] [代码][代码]})[代码][代码] [代码][代码].pipe(fs.createWriteStream(path.join(__dirname, [代码][代码]'demo.png'[代码][代码])))[代码][代码] [代码][代码]stream.on([代码][代码]'finish'[代码][代码], [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]cloud.uploadFile({[代码][代码] [代码][代码]cloudPath: [代码][代码]'demo.png'[代码][代码],[代码][代码] [代码][代码]fileContent: [代码][代码]'/var/user/demo.png'[代码][代码],[代码][代码] [代码][代码]})[代码] [代码] [代码][代码]})[代码]
2019-01-31