apifm-webapi 3.60.5 → 3.60.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +14 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -8,7 +8,6 @@ var timeout = 60000
|
|
|
8
8
|
|
|
9
9
|
// 创建axios实例
|
|
10
10
|
const baseRequest = axios.create({
|
|
11
|
-
baseURL: API_BASE_URL, // api 的 base_url
|
|
12
11
|
timeout: timeout // 请求超时时间
|
|
13
12
|
// headers: { 'X-Custom-Header': 'foobar' }
|
|
14
13
|
})
|
|
@@ -57,7 +56,7 @@ baseRequest.interceptors.response.use(
|
|
|
57
56
|
const request = (url, needSubDomain, method, data) => {
|
|
58
57
|
const _url = (needSubDomain ? '/' + subDomain : '') + url
|
|
59
58
|
return baseRequest({
|
|
60
|
-
url: _url,
|
|
59
|
+
url: API_BASE_URL + _url,
|
|
61
60
|
needSubDomain: needSubDomain,
|
|
62
61
|
method: method,
|
|
63
62
|
params: method == 'get' || method == 'GET' ? data : {},
|
|
@@ -695,6 +694,9 @@ module.exports = {
|
|
|
695
694
|
id
|
|
696
695
|
})
|
|
697
696
|
},
|
|
697
|
+
regionSearch: data => {
|
|
698
|
+
return request('/common/region/v2/search', false, 'post', data)
|
|
699
|
+
},
|
|
698
700
|
cashLogs: (data) => {
|
|
699
701
|
return request('/user/cashLog', true, 'post', data)
|
|
700
702
|
},
|
|
@@ -1211,7 +1213,7 @@ module.exports = {
|
|
|
1211
1213
|
return request('/user/email/login', true, 'post', data)
|
|
1212
1214
|
},
|
|
1213
1215
|
bindEmail: (token, email, code, pwd = '') => {
|
|
1214
|
-
return request('/user/email/
|
|
1216
|
+
return request('/user/email/bindEmail', true, 'post', {
|
|
1215
1217
|
token, email, code, pwd
|
|
1216
1218
|
})
|
|
1217
1219
|
},
|
|
@@ -1278,6 +1280,15 @@ module.exports = {
|
|
|
1278
1280
|
wxOpenAuthorization: (data) => {
|
|
1279
1281
|
return request('/user/wxsns/authorization', true, 'post', data)
|
|
1280
1282
|
},
|
|
1283
|
+
wxOpenRegister: (data) => {
|
|
1284
|
+
return request('/user/wxsns/register', true, 'post', data)
|
|
1285
|
+
},
|
|
1286
|
+
wxOpenBindOpenid: (data) => {
|
|
1287
|
+
return request('/user/wxsns/bindOpenid/v2', true, 'post', data)
|
|
1288
|
+
},
|
|
1289
|
+
wxOpenLogin: (data) => {
|
|
1290
|
+
return request('/user/wxsns/login', true, 'post', data)
|
|
1291
|
+
},
|
|
1281
1292
|
userAttentioncheck: (token, uid) => {
|
|
1282
1293
|
return request('/user/attention/check', true, 'get', {
|
|
1283
1294
|
token, uid
|