Newer
Older
smart_construction / cloudfunctions / devicelog / index.js
zhout on 27 May 2020 342 bytes Initial Commit
// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()
var rp = require('request-promise');
// 云函数入口函数
exports.main = async (event, context) => {
  return rp('http://localhost:8083/appDeviceLog/listPage').then(res => {
    return res;
    console.log(res);
  }).catch(err => {
    console.log(err);
  })
}