查询where条件里面的值只能写死嘛?不能这样写这样的形式id:this.data.userid?

小程序 文章 2021-03-16 10:41 354 0 全屏看文

AI助手支持GPT4.0

查询where条件里面的值只能写死嘛?不能这样写这样的形式id:this.data.userid?Can the value in the query where condition only be hard-coded? Can't write this form id: this.data.userid?

查询where条件里面的值只能写死嘛?不能这样写这样的形式id:this.data.userid?

这样写,就报错了

写入具体的值,就能成功查询

刚学的菜鸟想问下,第一种_openid:event._openid不能用嘛?

If you write in this way, you will report an error. If you write in the specific value, you can successfully query the novice who just learned. If you want to ask, the first one_ openid:event._ Can't openid work?

回答:

铅笔画不出蜡笔的味道:

String(event._openid)

跨商通:

语句上看不出有错误。但是,

看到你已经console.log(event._openid),所以猜你:

1、没有去看一下云函数里的日志,这里可能是undefined或者错值。

dreamhunter:

看日志 event._openid 打印结果正确么?

-EOF-

AI助手支持GPT4.0