小程序的坑

109 阅读1分钟

一、云开发模式

1、当你有2个云环境时,云函数cloud.init()中必须要指明调用环境。即:

cloud.init({env:'envid'})

错误代码:

errCode: -502005 database collection not exists errMsg: [ResourceNotFound] Db or Table not exist.

只有1个云环境则不会出现这个问题。