apifm-webapi 26.9.14 → 26.9.17

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 +8 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1091,6 +1091,7 @@ module.exports = {
1091
1091
  uploadUrl = data.apiUrl
1092
1092
  }
1093
1093
  delete data.apiUrl
1094
+ data.subDomain = subDomain
1094
1095
  let formData = new FormData()
1095
1096
  // 自动遍历data所有key,全部塞进formData
1096
1097
  Object.entries(data).forEach(([key, value]) => {
@@ -1265,13 +1266,13 @@ module.exports = {
1265
1266
  return request(COMMON_BASE_URL + subDomain + '/deposit/back/apply', false, 'post', { token, id })
1266
1267
  },
1267
1268
  shopAreaCities: () => {
1268
- return request('/shopArea/cities', true, 'get')
1269
+ return request(COMMON_BASE_URL + subDomain + '/shopArea/cities', false, 'get')
1269
1270
  },
1270
1271
  shopAreaList: (data) => {
1271
- return request('/shopArea/list', true, 'post', data)
1272
+ return request(COMMON_BASE_URL + subDomain + '/shopArea/list', false, 'post', data)
1272
1273
  },
1273
1274
  shopAreaDetail: (id) => {
1274
- return request('/shopArea/detail', true, 'get', { id })
1275
+ return request(COMMON_BASE_URL + subDomain + '/shopArea/detail', false, 'get', { id })
1275
1276
  },
1276
1277
  fetchShopsCities: () => {
1277
1278
  return request('/shop/subshop/cities', true, 'get')
@@ -1988,10 +1989,10 @@ module.exports = {
1988
1989
  return request(COMMON_BASE_URL + subDomain + '/goods/visitLog/clear', false, 'post', { token })
1989
1990
  },
1990
1991
  channelDataPush: (key, content) => {
1991
- return request('/channelData/push', true, 'post', { key, content })
1992
+ return request(COMMON_BASE_URL + subDomain + '/channelData/push', false, 'post', { key, content })
1992
1993
  },
1993
1994
  channelDataPull: (key) => {
1994
- return request('/channelData/pull', true, 'get', { key })
1995
+ return request(COMMON_BASE_URL + subDomain + '/channelData/pull', false, 'get', { key })
1995
1996
  },
1996
1997
  bindPartner: (token, partnerId) => {
1997
1998
  return request(COMMON_BASE_URL + subDomain + '/user/bindPartner', false, 'post', { token, uid: partnerId })
@@ -2755,10 +2756,10 @@ module.exports = {
2755
2756
  return request('/order/serving', true, 'post', { token, orderId })
2756
2757
  },
2757
2758
  shansongCourierInfo: data => {
2758
- return request('/order/shansongCourierInfo', true, 'get', data)
2759
+ return request(COMMON_BASE_URL + subDomain + '/order/shansongCourierInfo', false, 'get', data)
2759
2760
  },
2760
2761
  shansongOrderInfo: data => {
2761
- return request('/order/shansongOrderInfo', true, 'get', data)
2762
+ return request(COMMON_BASE_URL + subDomain + '/order/shansongOrderInfo', false, 'get', data)
2762
2763
  },
2763
2764
  userAttendantOrderStatistics: data => {
2764
2765
  return request('/order/statisticsJishi', true, 'get', data)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "26.9.14",
3
+ "version": "26.9.17",
4
4
  "description": "接口升级",
5
5
  "main": "index.js",
6
6
  "scripts": {