我也遇到了这个问题,云开发界面里的云函数列表里创建了不能编辑,在目录里上传了,在云开发的界面里又看不见,感觉这工具很反直觉,不知道是不是bug
为什么点击创建并部署云函数,显示上传成功但实际没有创建?[图片][图片]
02-21知道了,第一个问题通过打印知道了,结构变了,但是官方的代码还是旧的,所以window.openid的获取要改一下 //window.openid = res.result.openid window.openid = res.result.userInfo.openId console.log(`login openid is:${JSON.stringify(res.result)}`) 第二个是提示残留的问题,叉掉后就不会再提示了。
返回openid为undefined官方的飞机例子,开启云开发后提示main.js:60 db get score catch error Error: document.get:fail document.get:fail cannot find document with _id undefined-score, please make sure that the document exists and you have the corresponding access permission 似乎open_id返回为undefined了 另外在同步云函数的时候返回失败了: Error: 请在编辑器云函数根目录(cloudfunctionRoot)选择一个云环境 我没有找到cloudfunctionRoot这个目录,只有cloudfunction这个目录,并且云环境已经选择了,不知道为什么会出现这个错误。
2022-12-29