apifm-webapi 26.8.9 → 26.8.18

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 +15 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -524,21 +524,27 @@ module.exports = {
524
524
  return request('/goods/seckill/grab', true, 'post', { token, goodsId, seconds })
525
525
  },
526
526
  coupons: (data) => {
527
- return request('/discounts/coupons', true, 'get', data)
527
+ return request(COMMON_BASE_URL + subDomain + '/discounts/coupons', false, 'get', data)
528
528
  },
529
529
  couponDetail: (id) => {
530
- return request('/discounts/detail', true, 'get', {
530
+ return request(COMMON_BASE_URL + subDomain + '/discounts/detail', false, 'get', {
531
531
  id
532
532
  })
533
533
  },
534
534
  myCoupons: (data) => {
535
- return request('/discounts/my', true, 'get', data)
535
+ return request(COMMON_BASE_URL + subDomain + '/discounts/my', false, 'get', data)
536
+ },
537
+ mergeCouponsRules: () => {
538
+ return request(COMMON_BASE_URL + subDomain + '/discounts/merge/list', false, 'get')
539
+ },
540
+ mergeCoupons: (data) => {
541
+ return request(COMMON_BASE_URL + subDomain + '/discounts/merge', false, 'post', data)
536
542
  },
537
543
  fetchCoupons: (data) => {
538
- return request('/discounts/fetch', true, 'post', data)
544
+ return request(COMMON_BASE_URL + subDomain + '/discounts/fetch', false, 'post', data)
539
545
  },
540
546
  sendCoupons: (data) => {
541
- return request('/discounts/send', true, 'post', data)
547
+ return request(COMMON_BASE_URL + subDomain + '/discounts/send', false, 'post', data)
542
548
  },
543
549
  exchangeCoupons: (token, number, pwd) => {
544
550
  return request(COMMON_BASE_URL + subDomain + '/discounts/exchange', false, 'post', {
@@ -546,16 +552,16 @@ module.exports = {
546
552
  })
547
553
  },
548
554
  couponsShareOpen: (token, id) => {
549
- return request('/discounts/share/open', true, 'post', { token, id })
555
+ return request(COMMON_BASE_URL + subDomain + '/discounts/share/open', false, 'post', { token, id })
550
556
  },
551
557
  couponsShareClose: (token, id) => {
552
- return request('/discounts/share/close', true, 'post', { token, id })
558
+ return request(COMMON_BASE_URL + subDomain + '/discounts/share/close', false, 'post', { token, id })
553
559
  },
554
560
  couponsShareFetch: (token, id, shareToken) => {
555
- return request('/discounts/share/fetch', true, 'post', { token, id, shareToken })
561
+ return request(COMMON_BASE_URL + subDomain + '/discounts/share/fetch', false, 'post', { token, id, shareToken })
556
562
  },
557
563
  couponsHX: data => {
558
- return request('/discounts/hx', true, 'post', data)
564
+ return request(COMMON_BASE_URL + subDomain + '/discounts/hx', false, 'post', data)
559
565
  },
560
566
  noticeList: (data) => {
561
567
  return request('/notice/list', true, 'post', data)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "26.8.9",
3
+ "version": "26.8.18",
4
4
  "description": "接口升级",
5
5
  "main": "index.js",
6
6
  "scripts": {