共享云环境后,数据库无法获得找到云环境?

小程序 文章 2022-01-24 12:00 326 0 全屏看文

AI助手支持GPT4.0

共享云环境后,数据库无法获得找到云环境?After sharing the cloud environment, the database cannot get to find the cloud environment?

共享云环境后,数据库无法获得找到云环境?

我将小程序A的云环境共享给B,然后在B的app.js文件中写入云环境初始化并填入新的云环境ID,但是编译后运行提示无法找到DB,然后我再调用数据库界面初始数据库时填入Env参数,提示环境ID错误,但是在数据库后台可以看到有读取次数。

I share the cloud environment of applet a to B, and then use it in B's app JS file, write the cloud environment initialization and fill in the new cloud environment ID, but after compilation, run the prompt that the DB cannot be found, and then I call the database interface. When the initial database is filled in the env parameter, it prompts that the environment ID is wrong, but the number of reads can be seen in the background of the database.

回答:

微盟:

检查下对应数据库的权限设置

荒:

困难:

看看代码,看看报错

-EOF-

AI助手支持GPT4.0