云函数更新数据库某条属性为什么一直返回result: null?求大佬指点

小程序 文章 2022-01-17 23:00 379 0 全屏看文

AI助手支持GPT4.0

云函数更新数据库某条属性为什么一直返回result: null?求大佬指点Why does the cloud function keep returning result: null when a property in the database is updated? Ask for advice

云函数更新数据库某条属性为什么一直返回result: null?求大佬指点

我查了一些资料,一开始我没有加_openid,有大佬说表中没有这个无法判断是不是开发者操作,我加上了我自己的openid还是不行;

然后还有人说权限问题,我把权限都改成了true,还是不行,怎么改都返回null并且数据也没有更新,困扰了很久,希望大佬指点一下!

I checked some information, but I didn't add it at first_ Openid, some bosses said that it was impossible to judge whether it was operated by developers without this in the table. I still couldn't add my own openid; Then someone said about the permission problem. I changed the permission to true, but it still didn't work. How to change it, it returned null and the data was not updated. It has been bothered for a long time. I hope the boss can give me some advice!

回答:

纵横:

初学不是太懂

圣殿骑士:

云函数的结构贴下?

你可以先检查下,主函数有return吗?

无论fail还是success的情况

Mr.Zhao:

自己看下云函数日志

-EOF-

AI助手支持GPT4.0