调云函数时data参数中audit:true能查出数据 audit:options.audit不能?
发布于 6 年前 作者 wei87 10156 次浏览 来自 官方Issues
2 回复

谢邀

你那个应该是字符串了吧

var audit = typeof options.audit == ‘boolean’ ? options.audit : (options.audit == ‘true’ ? !0 : !1)

不区分“true”和true。解决方案

回到顶部