Commit 4acc04e4 by 高淑倩

tunnel-token

parent 01957995
...@@ -79,13 +79,10 @@ class Http { ...@@ -79,13 +79,10 @@ class Http {
.catch(this.fail) .catch(this.fail)
} }
// header: {
// 'tunnel-token' : 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD'
// },
get (url, parmas) { get (url, parmas) {
let baseUserInfo = wx.getStorageSync('_baseUserInfo') let baseUserInfo = wx.getStorageSync('_baseUserInfo')
console.log('baseUserInfo', baseUserInfo ? 'buyer-token' : 'tunnel-token')
if(baseUserInfo){ if(baseUserInfo){
return this.request({ return this.request({
url, url,
...@@ -101,7 +98,7 @@ class Http { ...@@ -101,7 +98,7 @@ class Http {
url, url,
method: 'GET', method: 'GET',
header: { header: {
'tunnel-token': this.getToken(), 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD',
'TENTACLE_CONTENT': this.getTentacle() 'TENTACLE_CONTENT': this.getTentacle()
}, },
data: parmas data: parmas
...@@ -129,7 +126,7 @@ class Http { ...@@ -129,7 +126,7 @@ class Http {
url, url,
method: 'POST', method: 'POST',
header: { header: {
'tunnel-token': this.getToken(), 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD',
'TENTACLE_CONTENT': this.getTentacle() 'TENTACLE_CONTENT': this.getTentacle()
}, },
data: parmas, 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