apifm-webapi 3.60.4 → 3.60.6

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.
Files changed (2) hide show
  1. package/index.js +7 -2
  2. 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 : {},
@@ -698,6 +697,12 @@ module.exports = {
698
697
  cashLogs: (data) => {
699
698
  return request('/user/cashLog', true, 'post', data)
700
699
  },
700
+ cashLogsV2: (data) => {
701
+ return request('/user/cashLog/v2', true, 'post', data)
702
+ },
703
+ statisticsComingOut: (data) => {
704
+ return request('/user/statisticsComingOut', true, 'post', data)
705
+ },
701
706
  payLogs: (data) => {
702
707
  return request('/user/payLogs', true, 'post', data)
703
708
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "3.60.4",
4
- "description": "userDetailSpreadUser",
3
+ "version": "3.60.6",
4
+ "description": "init2 方法无效的bug",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"