在使用iOS
的{{1}}应用中(在Heroku / mLab上),我遇到了云功能的以下问题。
以下是相关代码:
parse-server
以下是我从编译器获取的错误消息:
PFCloud.callFunction(inBackground: "myCloudFunction",
withParameters: ["lastTouch" : theLastTouchStamp]) {
(any: Any, error: Error) in
print("Now Inside Block (myCloudFunction)")
}
我已经浏览了网络以寻找一些信息,但是我找到了几个相关的帖子;没有什么能让我找到解决方案。
有人知道如何解决这个问题吗?
答案 0 :(得分:1)
从闭包中删除类型:
PFCloud.callFunction(inBackground: "myCloudFunction", withParameters: ["lastTouch" : theLastTouchStamp]) {
(value, error) in
print("Now Inside Block (myCloudFunction)")
}