apifm-webapi 26.7.26 → 26.8.4

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 +29 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -98,7 +98,7 @@ module.exports = {
98
98
  return request(COMMON_BASE_URL + subDomain + '/common/mobile-segment/next', false, 'post', data)
99
99
  },
100
100
  forexRate: (fromCode, toCode) => {
101
- return request('/forex/rate', true, 'get', { fromCode, toCode })
101
+ return request(COMMON_BASE_URL + subDomain + '/forex/rate', false, 'get', { fromCode, toCode })
102
102
  },
103
103
  queryConfigValue: (key) => {
104
104
  return request(COMMON_BASE_URL + subDomain + '/config/value', true, 'get', { key })
@@ -275,7 +275,7 @@ module.exports = {
275
275
  return request('/pay/airwallex/wxapp', true, 'post', data)
276
276
  },
277
277
  paypalCheckout: (data) => {
278
- return request('/pay/paypal/checkout', true, 'post', data)
278
+ return request(COMMON_BASE_URL + subDomain + '/pay/paypal/checkout', false, 'post', data)
279
279
  },
280
280
  alipay: (data) => {
281
281
  return request('/pay/alipay/semiAutomatic/payurl', true, 'post', data)
@@ -541,7 +541,7 @@ module.exports = {
541
541
  return request('/discounts/send', true, 'post', data)
542
542
  },
543
543
  exchangeCoupons: (token, number, pwd) => {
544
- return request('/discounts/exchange', true, 'post', {
544
+ return request(COMMON_BASE_URL + subDomain + '/discounts/exchange', false, 'post', {
545
545
  token, number, pwd
546
546
  })
547
547
  },
@@ -1327,16 +1327,16 @@ module.exports = {
1327
1327
  return request('/barcode/info', true, 'get', { barcode })
1328
1328
  },
1329
1329
  luckyInfo: (id) => {
1330
- return request('/luckyInfo/info', true, 'get', { id })
1330
+ return request(COMMON_BASE_URL + subDomain + '/luckyInfo/info/v2', false, 'get', { id })
1331
1331
  },
1332
1332
  luckyInfoJoin: (id, token) => {
1333
- return request('/luckyInfo/join', true, 'post', { id, token })
1333
+ return request(COMMON_BASE_URL + subDomain + '/luckyInfo/join', false, 'post', { id, token })
1334
1334
  },
1335
1335
  luckyInfoJoinMy: (id, token) => {
1336
- return request('/luckyInfo/join/my', true, 'get', { id, token })
1336
+ return request(COMMON_BASE_URL + subDomain + '/luckyInfo/join/my', false, 'get', { id, token })
1337
1337
  },
1338
1338
  luckyInfoJoinLogs: (data) => {
1339
- return request('/luckyInfo/join/logs', true, 'post', data)
1339
+ return request(COMMON_BASE_URL + subDomain + '/luckyInfo/join/logs', false, 'post', data)
1340
1340
  },
1341
1341
  jsonList: (data) => {
1342
1342
  return request('/json/list', true, 'post', data)
@@ -1688,6 +1688,24 @@ module.exports = {
1688
1688
  fetchSubDomainByWxappAppid: (appid) => {
1689
1689
  return request(COMMON_BASE_URL + '/subdomain/appid/wxapp', false, 'get', { appid })
1690
1690
  },
1691
+ cmsArticleFavPut: (token, newsId) => {
1692
+ return request(CMS_BASE_URL + subDomain + '/cms/news/fav/add', false, 'post', { token, newsId })
1693
+ },
1694
+ cmsArticleFavCheck: (token, newsId) => {
1695
+ return request(CMS_BASE_URL + subDomain + '/cms/news/fav/check', false, 'get', { token, newsId })
1696
+ },
1697
+ cmsArticleFavList: (data) => {
1698
+ return request('/cms/news/fav/list', true, 'post', data)
1699
+ },
1700
+ cmsArticleFavListV2: (data) => {
1701
+ return request(CMS_BASE_URL + subDomain + '/cms/news/fav/list/v2', false, 'post', data)
1702
+ },
1703
+ cmsArticleFavDeleteById: (token, id) => {
1704
+ return request(CMS_BASE_URL + subDomain + '/cms/news/fav/delete', false, 'post', { token, id })
1705
+ },
1706
+ cmsArticleFavDeleteByNewsId: (token, newsId) => {
1707
+ return request(CMS_BASE_URL + subDomain + '/cms/news/fav/delete', false, 'post', { token, newsId })
1708
+ },
1691
1709
  shippingCarInfo: (token) => {
1692
1710
  return request('/shopping-cart/info', true, 'get', {
1693
1711
  token
@@ -2459,7 +2477,7 @@ module.exports = {
2459
2477
  return request(COMMON_BASE_URL + subDomain + '/user/aliapp/authorize', false, 'post', data)
2460
2478
  },
2461
2479
  aliappWebUserAuthorize: data => {
2462
- return request('/user/aliappweb/authorize', true, 'post', data)
2480
+ return request(COMMON_BASE_URL + subDomain + '/user/aliappweb/authorize', false, 'post', data)
2463
2481
  },
2464
2482
  aliappQrcode: content => {
2465
2483
  return request(COMMON_BASE_URL + subDomain + '/user/aliapp/qrcode', false, 'post', { content })
@@ -2825,6 +2843,9 @@ module.exports = {
2825
2843
  blindBoxFriendsBalance: (token) => {
2826
2844
  return request(COMMON_BASE_URL + subDomain + '/blindBoxFriends/balance', false, 'get', { token })
2827
2845
  },
2846
+ blindBoxFriendsSetting: () => {
2847
+ return request(COMMON_BASE_URL + subDomain + '/blindBoxFriends/setting', false, 'get')
2848
+ },
2828
2849
  cpactivityInfoDetail: (id) => {
2829
2850
  return request(COMMON_BASE_URL + subDomain + '/cpactivityInfo/detail', false, 'get', { id })
2830
2851
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "26.7.26",
3
+ "version": "26.8.4",
4
4
  "description": "接口升级",
5
5
  "main": "index.js",
6
6
  "scripts": {