apifm-webapi 26.8.2 → 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 +19 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -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
  },
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "26.8.2",
3
+ "version": "26.8.4",
4
4
  "description": "接口升级",
5
5
  "main": "index.js",
6
6
  "scripts": {