Parse platform 分析主密钥在云代码中不起作用

Parse platform 分析主密钥在云代码中不起作用,parse-platform,key,cloud,Parse Platform,Key,Cloud,我最近编写了一个小脚本,使用afterSave()在解析云代码中增加一个列计数,效果很好。但是,在更改ACL并按照解析文档中的建议使用主密钥后,我不断收到错误: Error: Cannot use the Master Key, it has not been provided. 我正在使用Parse.initialize(userId、jsKey、masterKey),并尝试使用Parse.Cloud.useMasterKey();在我的afterSave()方法中,我尝试在save()方法

我最近编写了一个小脚本,使用afterSave()在解析云代码中增加一个列计数,效果很好。但是,在更改ACL并按照解析文档中的建议使用主密钥后,我不断收到错误:

Error: Cannot use the Master Key, it has not been provided.
我正在使用Parse.initialize(userId、jsKey、masterKey),并尝试使用Parse.Cloud.useMasterKey();在我的afterSave()方法中,我尝试在save()方法中使用{useMasterKey:true}。这是虫子吗?任何帮助都将不胜感激