非常奇怪,安卓代码:
ParseObject t = new ParseObject("Test");
t.put("test","test");
t.save();
有效。
如果我添加了beforeSave云代码,则所有字段都将是未定义的!
Parse.Cloud.beforeSave("Test", function(request, response) {
console.log("request id:"+request.object.id);
response.success();
});
I2015-09-12T14:53:24.099Z]v33 before_save triggered for Test for user yai2bFOzPt:
Input: {"original":null,"update":{"ACL":{"*":{"read":true,"write":true},"yai2bFOzPt":{"read":true,"write":true}},"test":"test"}}
Result: Update changed to {}
I2015-09-12T14:53:24.163Z]request id:undefined
如果我删除了云代码触发器,它会再次运行。
此行为仅在新创建的解析应用程序中,旧应用程序有效!