云数据库在查询数据为空时会直接报错,怎么处理?

小程序 文章 2020-08-31 15:41 791 0 全屏看文

AI助手支持GPT4.0

云数据库在查询数据为空时会直接报错,怎么处理?The cloud database will directly report an error when the query data is empty. What should I do?

云数据库在查询数据为空时会直接报错,怎么处理?

希望返回为空也可以,不要报错吧

I hope the return is empty, do not report an error

回答:

,,,:

解决了,app.js指定环境

开发中.com:

wx.cloud.callFunction({name:'云函数名写对了没有?'})

stop eating:

找不到对应的FunctionName,还没到查询那步呢,学会看报错

-EOF-

AI助手支持GPT4.0