|
@@ -2,7 +2,7 @@ const { baseUrl } = require('./env').prod
|
|
|
module.exports = {
|
|
|
request : function(url, type , data = {}){
|
|
|
let fullUrl = `${baseUrl}${url}`
|
|
|
- let token = wx.getStorageSync('token')
|
|
|
+ var token = wx.getStorageSync('token')
|
|
|
return new Promise((resolve,reject)=>{
|
|
|
wx.request({url: fullUrl,method:type,data,header: {'content-type': 'application/json','Authorization': token},
|
|
|
success(res){resolve(res)},
|