aggregate报错,返回-1,无法找到原因且只在真机上出现

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 17:29 592 0 全屏看文

AI助手支持GPT4.0

aggregate报错,返回-1,无法找到原因且只在真机上出现
框架类型 问题类型 终端类型 AppID 环境ID 基础库版本
小游戏 Bug 微信安卓客户端 wxca1eb7739f6cb537 clear-numbers-9szmt 2.11.2

小程序开发工具的模拟环境中暂时没有发现此问题,是在提交审核时发现的,且因为此BUG多次被审核拒绝导致无法上线,本人也尽力寻找问题原因,但是一无所获,希望能借助技术支持解决此问题,错误提示信息在截图中。

Framework type problem type terminal type appid environment ID basic library version games bug wechat Android client wxca1eb7739f6cb537 clear-numbers-9szmt 2.11.2 This problem has not been found in the simulation environment of the applet development tool for the time being. It was found when submitting for audit. Because this bug has been rejected for many times, it is unable to go online. I also try my best to find out the cause of the problem, but nothing is found. I hope to solve this problem with the help of technical support. The error message is in the screenshot. Code snippet db.collection ('inning').aggregate().match({ type: _ .eq(0).or(_ .eq(1)) }).group({ _ id: null, topClasses: $.max('$classes'), scores: $.sum('$scores') }) .end({})

回答:

云开发技术运营专员-Zira:

请检查代码,尽可能使用云函数来操作

-EOF-

AI助手支持GPT4.0