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)。