【发布时间】:2021-11-30 21:10:38
【问题描述】:
我的 Wix 网站的后端中有以下代码。它旨在将一些值插入到私有数据集合中。这里是:
export function insertDataMembers(username, email, password, wsmoStatus, ssmoStatus) {
let toInsert = {
'title': username.value,
'email': email.value,
'password': password.value,
'wsmoStatus': wsmoStatus,
'ssmoStatus': ssmoStatus
};
wixData.insert('members', toInsert, options);
}
当我从前端调用它时,它会在集合中插入一个新行,但除了隐藏字段之外的所有内容都是空白的。我正在使用suppressAuth 和suppressHooks。怎么了? (wsmoStatus 和 ssmoStatus 变量是布尔值,其余的应该是字符串)。
【问题讨论】:
标签: javascript velo