云函数中的如下代码:
collection.add(item)
.then((res)=>{
console.log("add.then: ", res);
})
.catch((err)=>{
console.log("add.catch: ", err);
})
如果上面云函数在阿里云空间调用,不能增加记录到云数据库中。
但如何上面云函数连接本地云函数,则可以成功增加记录到云数据库。
云函数中的如下代码:
collection.add(item)
.then((res)=>{
console.log("add.then: ", res);
})
.catch((err)=>{
console.log("add.catch: ", err);
})
如果上面云函数在阿里云空间调用,不能增加记录到云数据库中。
但如何上面云函数连接本地云函数,则可以成功增加记录到云数据库。
l***@163.com (作者)
云函数是否支持这种写法?
2022-04-16 08:27
hws007
回复 l***@163.com: 云函数内使用JQL
https://uniapp.dcloud.io/uniCloud/jql-cloud.html
2022-04-16 22:25