云开发小游戏飞机大战报错

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 20:36 660 0 全屏看文

AI助手支持GPT4.0

云开发小游戏飞机大战报错
框架类型 问题类型 操作系统 工具版本
小游戏 Bug Windows 1.03(现在最新版的)

uploadScore云函数报错


[info] 函数被触发,正在执行中...

node.js:1 [error] 函数执行失败(耗时 42ms) TypeError: Cannot read property 'openId' of undefined

    at u.exports.main [as handler] (G:gametestcloudfunctionuploadScoreindex.js:20:35)

    at E:微信web开发者工具codepackage.nwjscommoncloud-functions-debugger-serverworkernode.js:1:23533

    at processTicksAndRejections (internal/process/task_queues.js:85:5)

Framework type problem type operating system tools version games bug windows 1.03 (now the latest version) uploadscore cloud function error [info] function is triggered, is executing node.js : 1 [error] function failed to execute (took 42ms) typeerror: cannot read property 'openid' of undefined at U exports.main [as handler] (G:gametestcloudfunctionuploadScore index.js:20 : 35) at e: wechat web developer tool package.nw jscommoncloud-functions-debugger-serverworker node.js :1:23533 at processTicksAndRejections (internal/process/task_ queues.js:85 5)

回答:

小游戏运营专员-宏:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

-EOF-

AI助手支持GPT4.0