Commit 6691764b authored by 刘攀's avatar 刘攀

区分微信不传referer

parent d8a41ef2
......@@ -16,16 +16,16 @@ class Fetch {
this.baseUrl = REQUEST_URL[process.env.VUE_APP_SERVE_ENV]
this.baseServeUrl = 'web'
this.headers = {
'Accept': 'v=1.0',
'Qm-From-Type': 'retail',
// #ifdef MP-WEIXIN
'Qm-From': 'wechat',
// #endif
// #ifdef MP-ALIPAY
'Qm-From': 'alipay',
'referer': this.baseUrl,
// #endif
'Qm-From-Type': 'retail',
'content-type': 'application/json',
'Accept': 'v=1.0',
'referer': this.baseUrl
'content-type': 'application/json'
}
}
// 判断是否是对象
......
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