ssa*_*ash 0 parse-platform parse-server
我为了演示目的编写了这个云函数。
Parse.Cloud.define('hello', function(req, res) {
res.success("hi");
});
Run Code Online (Sandbox Code Playgroud)
但它总是返回此错误消息
{
"code": 141,
"error": "res.success is not a function"
}
Run Code Online (Sandbox Code Playgroud)
怎么了?
从解析服务器 3.0 开始,不再有响应对象。只需返回值,它就会起作用。
Parse.Cloud.define(‘hello’, (req) => {
return ‘ok’;
});
Run Code Online (Sandbox Code Playgroud)
有关更多信息,请参阅迁移指南:https : //github.com/parse-community/parse-server/blob/master/3.0.0.md
| 归档时间: |
|
| 查看次数: |
1007 次 |
| 最近记录: |