feat: 更新依赖库

This commit is contained in:
eric
2022-11-20 22:12:26 +08:00
parent 9045642740
commit 54d12d3259
13 changed files with 492 additions and 23 deletions

16
cloudfunctions/index.js Normal file
View File

@@ -0,0 +1,16 @@
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()
// 云函数入口函数
exports.main = async (event, context) => {
const wxContext = cloud.getWXContext()
return {
event,
openid: wxContext.OPENID,
appid: wxContext.APPID,
unionid: wxContext.UNIONID,
}
}