module.exports = (url, data = {}, method = “GET”, header = {}) => {
return new Promise((resolve, reject) => {
wx.request({
// https://liweostudent.cn/
// http://192.168.0.101:8888/
url:https://xxx/${url}
,
// url:http://192.168.0.105:8888//${url}
,
// url:http://192.168.0.101:8878${url}
,
data: data,
method: method,
success: resolve,
header: header
})
})
}
const api = require('../../utils/api.js')