mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
添加了一些页面
This commit is contained in:
20
wechat/cloudfunctions/wumeiRequest/index.js
Normal file
20
wechat/cloudfunctions/wumeiRequest/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// 云函数入口文件
|
||||
const cloud = require('wx-server-sdk')
|
||||
const resPro = require('request-promise')
|
||||
cloud.init({
|
||||
env: cloud.DYNAMIC_CURRENT_ENV
|
||||
})
|
||||
|
||||
// 云函数入口函数
|
||||
exports.main = async (event, context) => {
|
||||
const url = event.url;
|
||||
const params = event.params;
|
||||
return await resPro({
|
||||
...params,
|
||||
url:url
|
||||
}).then(res=>{
|
||||
return res
|
||||
}).catch(err=>{
|
||||
return err
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user