apifm-webapi 26.8.9 → 26.8.22
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 +31 -19
- 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)
|
|
@@ -2352,22 +2358,22 @@ module.exports = {
|
|
|
2352
2358
|
},
|
|
2353
2359
|
// 橱窗
|
|
2354
2360
|
chuchuanSettingInfo: uid => {
|
|
2355
|
-
return request('/chuchuan/info',
|
|
2361
|
+
return request(COMMON_BASE_URL + subDomain + '/chuchuan/info', false, 'get', { uid })
|
|
2356
2362
|
},
|
|
2357
2363
|
chuchuanSettingModify: data => {
|
|
2358
|
-
return request('/chuchuan/modify',
|
|
2364
|
+
return request(COMMON_BASE_URL + subDomain + '/chuchuan/modify', false, 'post', data)
|
|
2359
2365
|
},
|
|
2360
2366
|
chuchuanGoodsList: data => {
|
|
2361
|
-
return request('/chuchuanGoods/list',
|
|
2367
|
+
return request(COMMON_BASE_URL + subDomain + '/chuchuanGoods/list', false, 'post', data)
|
|
2362
2368
|
},
|
|
2363
2369
|
chuchuanGoodsAdd: data => {
|
|
2364
|
-
return request('/chuchuanGoods/add',
|
|
2370
|
+
return request(COMMON_BASE_URL + subDomain + '/chuchuanGoods/add', false, 'post', data)
|
|
2365
2371
|
},
|
|
2366
2372
|
chuchuanGoodsRemove: (token, goodsId) => {
|
|
2367
|
-
return request('/chuchuanGoods/remove',
|
|
2373
|
+
return request(COMMON_BASE_URL + subDomain + '/chuchuanGoods/remove', false, 'post', { token, goodsId })
|
|
2368
2374
|
},
|
|
2369
2375
|
chuchuanGoodsCheck: (token, goodsId) => {
|
|
2370
|
-
return request('/chuchuanGoods/check',
|
|
2376
|
+
return request(COMMON_BASE_URL + subDomain + '/chuchuanGoods/check', false, 'get', { token, goodsId })
|
|
2371
2377
|
},
|
|
2372
2378
|
// 寄存
|
|
2373
2379
|
jicunGoodsList: data => {
|
|
@@ -2655,16 +2661,16 @@ module.exports = {
|
|
|
2655
2661
|
return request('/distributedLock/lock', true, 'get', { key })
|
|
2656
2662
|
},
|
|
2657
2663
|
communitySetting: () => {
|
|
2658
|
-
return request('/community/setting',
|
|
2664
|
+
return request(COMMON_BASE_URL + subDomain + '/community/setting', false, 'get')
|
|
2659
2665
|
},
|
|
2660
2666
|
communityLeaderApply: data => {
|
|
2661
|
-
return request('/communityLeader/apply',
|
|
2667
|
+
return request(COMMON_BASE_URL + subDomain + '/communityLeader/apply', false, 'post', data)
|
|
2662
2668
|
},
|
|
2663
2669
|
communityLeaderApplyInfo: token => {
|
|
2664
|
-
return request('/communityLeader/apply/info',
|
|
2670
|
+
return request(COMMON_BASE_URL + subDomain + '/communityLeader/apply/info', false, 'get', { token })
|
|
2665
2671
|
},
|
|
2666
2672
|
communityLeaderBuy: token => {
|
|
2667
|
-
return request('/communityLeader/buy',
|
|
2673
|
+
return request(COMMON_BASE_URL + subDomain + '/communityLeader/buy', false, 'post', { token })
|
|
2668
2674
|
},
|
|
2669
2675
|
communityOrderFahuo: data => {
|
|
2670
2676
|
return request('/communityOrder/fahuo', true, 'post', data)
|
|
@@ -3182,4 +3188,10 @@ module.exports = {
|
|
|
3182
3188
|
dabGetPrice: (data) => {
|
|
3183
3189
|
return request(COMMON_BASE_URL + subDomain + '/dab/getPrice', false, 'get', data)
|
|
3184
3190
|
},
|
|
3191
|
+
yaduoBasicLogin: (data) => {
|
|
3192
|
+
return request(COMMON_BASE_URL + subDomain + '/yaduo/basicLogin', false, 'get', data)
|
|
3193
|
+
},
|
|
3194
|
+
yaduoUnbind: (data) => {
|
|
3195
|
+
return request(COMMON_BASE_URL + subDomain + '/yaduo/unbind', false, 'post', data)
|
|
3196
|
+
},
|
|
3185
3197
|
}
|