|
|
@@ -250,15 +250,18 @@ class Request {
|
|
|
}
|
|
|
|
|
|
get(url, data = {}, options = {}, config = {}) {
|
|
|
- // options.url = url + common.queryData(data, true)
|
|
|
- options.url = url + parse({...data,'account':uni.getStorageSync('account')})
|
|
|
+ let account = uni.getStorageSync('account') || 0;
|
|
|
+ let hdId = uni.getStorageSync('hdId') || 0;
|
|
|
+ options.url = url + parse({...data,'account':account,'hdId':hdId})
|
|
|
options.data = {}
|
|
|
options.method = 'GET'
|
|
|
return this.request(options, config)
|
|
|
}
|
|
|
|
|
|
post(url, data = {}, options = {}, config = {}) {
|
|
|
- options.url = url+'?account='+uni.getStorageSync('account')
|
|
|
+ let account = uni.getStorageSync('account') || 0;
|
|
|
+ let hdId = uni.getStorageSync('hdId') || 0;
|
|
|
+ options.url = url+'?account='+account+'&hdId='+hdId
|
|
|
options.data = data
|
|
|
options.method = 'POST'
|
|
|
return this.request(options, config)
|