-
创建时间
20年9月10日
-
最后回复
20年9月10日
-
2
回复
-
1.5K
浏览
-
2
用户
-
2
链接
我也更新了一下 云引擎 SDK2
但是旧版 SDK 不支持返回值为 Task 类型,所以代码要使用同步方式,需做如下改动
[EngineFunction("Hello")]
public static string Hello([EngineFunctionParameter("text")]string text)
{
Console.WriteLine("call Hello function");
try {
AVQuery<AVObject> query = new AVQuery<AVObject>("Hello");
Task<IEnumerable<AVObject>> task = query.FindAsync();
task.Wait();
foreach (AVObject obj in task.Result) {
Console.WriteLine(obj.ObjectId);
}
} catch (Exception e) {
Console.WriteLine(e.Message);
}
return $"hello, {text}";
}
推荐主题
主题 | 分类 | 回复 | 浏览 | 活动 |
---|---|---|---|---|
play.js文件 用cocoscretor发布成微信小游戏找不到此文件 | 已修复 | 11 | 2.2K | 19-04-8 |
Python云引擎无法使用engine.current_user作为查询条件 | 已修复 | 3 | 1.1K | 16-02-22 |
安卓createConversation一直返回错误 | 已修复 | 13 | 2.3K | 15-11-26 |
【小程序】在 mpvue 中手动导入报错;在 wepy 中通过 npm 方式引用报错 | 已修复 | 1 | 1.5K | 18-05-3 |
我的应用没有日志输出 | 已修复 | 8 | 1.8K | 17-02-22 |