apifm-webapi 3.50.0 → 3.55.1
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 +63 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -243,6 +243,12 @@ module.exports = {
|
|
|
243
243
|
alipay: (data) => {
|
|
244
244
|
return request('/pay/alipay/semiAutomatic/payurl', true, 'post', data)
|
|
245
245
|
},
|
|
246
|
+
alipayMP: (data) => {
|
|
247
|
+
return request('/pay/alipay/gate/mp', true, 'post', data)
|
|
248
|
+
},
|
|
249
|
+
alipayAPP: (data) => {
|
|
250
|
+
return request('/pay/alipay/gate/app', true, 'post', data)
|
|
251
|
+
},
|
|
246
252
|
login_wx: (code) => {
|
|
247
253
|
return request('/user/wxapp/login', true, 'post', {
|
|
248
254
|
code,
|
|
@@ -296,6 +302,9 @@ module.exports = {
|
|
|
296
302
|
goodsCategory: () => {
|
|
297
303
|
return request('/shop/goods/category/all', true, 'get')
|
|
298
304
|
},
|
|
305
|
+
goodsCategoryV2: (shopId = '') => {
|
|
306
|
+
return request('/shop/goods/category/all', true, 'get', { shopId })
|
|
307
|
+
},
|
|
299
308
|
goodsCategoryDetail: (id) => {
|
|
300
309
|
return request('/shop/goods/category/info', true, 'get', { id })
|
|
301
310
|
},
|
|
@@ -368,8 +377,8 @@ module.exports = {
|
|
|
368
377
|
goodsFavDeleteV2: data => {
|
|
369
378
|
return request('/shop/goods/fav/delete', true, 'post', data)
|
|
370
379
|
},
|
|
371
|
-
goodsSeckillGrab: (goodsId, seconds) => {
|
|
372
|
-
return request('/goods/seckill/grab',
|
|
380
|
+
goodsSeckillGrab: (token, goodsId, seconds) => {
|
|
381
|
+
return request('/goods/seckill/grab', true, 'post', { token, goodsId, seconds })
|
|
373
382
|
},
|
|
374
383
|
coupons: (data) => {
|
|
375
384
|
return request('/discounts/coupons', true, 'get', data)
|
|
@@ -393,6 +402,15 @@ module.exports = {
|
|
|
393
402
|
token, number, pwd
|
|
394
403
|
})
|
|
395
404
|
},
|
|
405
|
+
couponsShareOpen: (token, id) => {
|
|
406
|
+
return request('/discounts/share/open', true, 'post', { token, id })
|
|
407
|
+
},
|
|
408
|
+
couponsShareClose: (token, id) => {
|
|
409
|
+
return request('/discounts/share/close', true, 'post', { token, id })
|
|
410
|
+
},
|
|
411
|
+
couponsShareFetch: (token, id, shareToken) => {
|
|
412
|
+
return request('/discounts/share/fetch', true, 'post', { token, id, shareToken })
|
|
413
|
+
},
|
|
396
414
|
noticeList: (data) => {
|
|
397
415
|
return request('/notice/list', true, 'post', data)
|
|
398
416
|
},
|
|
@@ -498,6 +516,11 @@ module.exports = {
|
|
|
498
516
|
token
|
|
499
517
|
})
|
|
500
518
|
},
|
|
519
|
+
userAliappInfo: (token) => {
|
|
520
|
+
return request('/user/aliappInfo', true, 'get', {
|
|
521
|
+
token
|
|
522
|
+
})
|
|
523
|
+
},
|
|
501
524
|
userAmount: (token) => {
|
|
502
525
|
return request('/user/amount', true, 'get', {
|
|
503
526
|
token
|
|
@@ -640,6 +663,11 @@ module.exports = {
|
|
|
640
663
|
page, pageSize
|
|
641
664
|
})
|
|
642
665
|
},
|
|
666
|
+
fxSaleroomRankTotalTeam: (page, pageSize) => {
|
|
667
|
+
return request('/saleDistribution/sale-room-rank/team/total', true, 'get', {
|
|
668
|
+
page, pageSize
|
|
669
|
+
})
|
|
670
|
+
},
|
|
643
671
|
fxSaleroomRankDaily: (page, pageSize, day) => {
|
|
644
672
|
return request('/saleDistribution/sale-room-rank/daily', true, 'get', {
|
|
645
673
|
page, pageSize, day
|
|
@@ -731,6 +759,9 @@ module.exports = {
|
|
|
731
759
|
cmsArticleDetail: (id) => {
|
|
732
760
|
return request('/cms/news/detail', true, 'get', { id })
|
|
733
761
|
},
|
|
762
|
+
cmsArticleDetailV2: (id, token = '') => {
|
|
763
|
+
return request('/cms/news/detail/v2', true, 'get', { id, token })
|
|
764
|
+
},
|
|
734
765
|
cmsArticlePreNext: (id) => {
|
|
735
766
|
return request('/cms/news/preNext', true, 'get', { id })
|
|
736
767
|
},
|
|
@@ -1008,6 +1039,12 @@ module.exports = {
|
|
|
1008
1039
|
token, email, code, pwd
|
|
1009
1040
|
})
|
|
1010
1041
|
},
|
|
1042
|
+
goodsDynamic: (type) => {
|
|
1043
|
+
return request('/site/goods/dynamic', true, 'get', { type })
|
|
1044
|
+
},
|
|
1045
|
+
goodsDynamicV2: data => {
|
|
1046
|
+
return request('/site/goods/dynamic', true, 'get', data)
|
|
1047
|
+
},
|
|
1011
1048
|
shippingCarInfo: (token) => {
|
|
1012
1049
|
return request('/shopping-cart/info', true, 'get', {
|
|
1013
1050
|
token
|
|
@@ -1038,6 +1075,12 @@ module.exports = {
|
|
|
1038
1075
|
code
|
|
1039
1076
|
})
|
|
1040
1077
|
},
|
|
1078
|
+
registerQ: (data) => {
|
|
1079
|
+
return request('/user/q/register', true, 'post', data)
|
|
1080
|
+
},
|
|
1081
|
+
qqAuthorize: (data) => {
|
|
1082
|
+
return request('/user/q/authorize', true, 'post', data)
|
|
1083
|
+
},
|
|
1041
1084
|
siteStatistics: () => {
|
|
1042
1085
|
return request('/site/statistics', true, 'get')
|
|
1043
1086
|
},
|
|
@@ -1519,4 +1562,22 @@ module.exports = {
|
|
|
1519
1562
|
bottleMsgSalvage: token => {
|
|
1520
1563
|
return request('/bottleMsg/salvage', true, 'get', { token })
|
|
1521
1564
|
},
|
|
1565
|
+
userInvoiceInfo: token => {
|
|
1566
|
+
return request('/userInvoice/info', true, 'get', { token })
|
|
1567
|
+
},
|
|
1568
|
+
userInvoiceUnbind: token => {
|
|
1569
|
+
return request('/userInvoice/unbind', true, 'post', { token })
|
|
1570
|
+
},
|
|
1571
|
+
userInvoiceBind: data => {
|
|
1572
|
+
return request('/userInvoice/bind', true, 'post', data)
|
|
1573
|
+
},
|
|
1574
|
+
tempDataSet: (key, content) => {
|
|
1575
|
+
return request('/tempData/set', true, 'post', { key, content })
|
|
1576
|
+
},
|
|
1577
|
+
tempDataGet: key => {
|
|
1578
|
+
return request('/tempData/get', true, 'get', { key })
|
|
1579
|
+
},
|
|
1580
|
+
commonDatetime: () => {
|
|
1581
|
+
return request('/common/datetime', true, 'get')
|
|
1582
|
+
},
|
|
1522
1583
|
}
|