mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
智慧宿舍系统小程序
This commit is contained in:
5
wechat/cloudfunctions/echo/config.json
Normal file
5
wechat/cloudfunctions/echo/config.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"permissions": {
|
||||
"openapi": []
|
||||
}
|
||||
}
|
||||
8
wechat/cloudfunctions/echo/index.js
Normal file
8
wechat/cloudfunctions/echo/index.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const cloud = require('wx-server-sdk')
|
||||
|
||||
exports.main = async (event, context) => {
|
||||
// event.userInfo 是已废弃的保留字段,在此不做展示
|
||||
// 获取 OPENID 等微信上下文请使用 cloud.getWXContext()
|
||||
delete event.userInfo
|
||||
return event
|
||||
}
|
||||
14
wechat/cloudfunctions/echo/package.json
Normal file
14
wechat/cloudfunctions/echo/package.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "echo",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"wx-server-sdk": "~2.5.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user