Commit 4acc04e4 by 高淑倩

tunnel-token

parent 01957995
......@@ -79,13 +79,10 @@ class Http {
.catch(this.fail)
}
// header: {
// 'tunnel-token' : 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
// },
get (url, parmas) {
let baseUserInfo = wx.getStorageSync('_baseUserInfo')
console.log('baseUserInfo', baseUserInfo ? 'buyer-token' : 'tunnel-token')
if(baseUserInfo){
return this.request({
url,
......@@ -101,7 +98,7 @@ class Http {
url,
method: 'GET',
header: {
'tunnel-token': this.getToken(),
'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD',
'TENTACLE_CONTENT': this.getTentacle()
},
data: parmas
......@@ -129,7 +126,7 @@ class Http {
url,
method: 'POST',
header: {
'tunnel-token': this.getToken(),
'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD',
'TENTACLE_CONTENT': this.getTentacle()
},
data: parmas,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment