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.
- package/index.js +15 -9
- 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',
|
|
527
|
+
return request(COMMON_BASE_URL + subDomain + '/discounts/coupons', false, 'get', data)
|
|
528
528
|
},
|
|
529
529
|
couponDetail: (id) => {
|
|
530
|
-
return request('/discounts/detail',
|
|
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',
|
|
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',
|
|
544
|
+
return request(COMMON_BASE_URL + subDomain + '/discounts/fetch', false, 'post', data)
|
|
539
545
|
},
|
|
540
546
|
sendCoupons: (data) => {
|
|
541
|
-
return request('/discounts/send',
|
|
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',
|
|
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',
|
|
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',
|
|
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',
|
|
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)
|