// 云函数入口文件
const cloud = require(‘wx-server-sdk’)
cloud.init()
exports.main = async (event, context) => {
const {
OPENID,
APPID,
UNIONID,
} = cloud.getWXContext()
return {
OPENID,
APPID,
UNIONID,
}
}
返回结果:
{}
摘要
请求ID:5dae3749-52a4-11e9-b760-525400e8849e
运行时间:218.303ms
计费时间:300ms
运行内存:13.8671875MB
日志
START RequestId: 5dae3749-52a4-11e9-b760-525400e8849e
Event RequestId: 5dae3749-52a4-11e9-b760-525400e8849eEvent:{}
END RequestId: 5dae3749-52a4-11e9-b760-525400e8849e
Report RequestId: 5dae3749-52a4-11e9-b760-525400e8849e Duration:218.303ms Memory:256MB MaxMemoryUsed:13.8672MB