const cloud = require('wx-server-sdk'); const wxContext = cloud.getWXContext(); await db.collection('signInfo') .where({ _id: event._id }) .update({ data: { _openid: wxContext.OPENID, signmem:_.push(event.wxcontacts) } }) .then(res => { console.log('更新公告成功') })