【报错内容】:
Error: errCode: -1 unknown error | errMsg: parameter should be object instead of undefined;
at Object.assertType (D:\wechat\note\cloudfunctions\updateUser\node_modules\wx-server-sdk\index.js:7648:15)
at D:\wechat\note\cloudfunctions\updateUser\node_modules\wx-server-sdk\index.js:1493:26
at new Promise ()
at Query.update (D:\wechat\note\cloudfunctions\updateUser\node_modules\wx-server-sdk\index.js:1491:16)
at u.exports.main [as handler] (D:\wechat\note\cloudfunctions\updateUser\index.js:17:8)
at D:\Program Files\Tencent\微信web开发者工具\code\package.nw\js\common\cloud-functions-debugger-server\worker\node.js:1:37172
at processTicksAndRejections (internal/process/task_queues.js:85:5)
【调用云数据库】:
【结果】:
我自己解决了。好家伙,原来是少了一层。搞了一下午!!!
这是没修改前错误的:
这是修改后正确的:
user08是个啥?
uupdate: { data:{ sex:0 } }
const userDB = DB.collection("u_users")