apifm-webapi 3.52.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 +40 -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,
|
|
@@ -371,8 +377,8 @@ module.exports = {
|
|
|
371
377
|
goodsFavDeleteV2: data => {
|
|
372
378
|
return request('/shop/goods/fav/delete', true, 'post', data)
|
|
373
379
|
},
|
|
374
|
-
goodsSeckillGrab: (goodsId, seconds) => {
|
|
375
|
-
return request('/goods/seckill/grab',
|
|
380
|
+
goodsSeckillGrab: (token, goodsId, seconds) => {
|
|
381
|
+
return request('/goods/seckill/grab', true, 'post', { token, goodsId, seconds })
|
|
376
382
|
},
|
|
377
383
|
coupons: (data) => {
|
|
378
384
|
return request('/discounts/coupons', true, 'get', data)
|
|
@@ -396,6 +402,15 @@ module.exports = {
|
|
|
396
402
|
token, number, pwd
|
|
397
403
|
})
|
|
398
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
|
+
},
|
|
399
414
|
noticeList: (data) => {
|
|
400
415
|
return request('/notice/list', true, 'post', data)
|
|
401
416
|
},
|
|
@@ -501,6 +516,11 @@ module.exports = {
|
|
|
501
516
|
token
|
|
502
517
|
})
|
|
503
518
|
},
|
|
519
|
+
userAliappInfo: (token) => {
|
|
520
|
+
return request('/user/aliappInfo', true, 'get', {
|
|
521
|
+
token
|
|
522
|
+
})
|
|
523
|
+
},
|
|
504
524
|
userAmount: (token) => {
|
|
505
525
|
return request('/user/amount', true, 'get', {
|
|
506
526
|
token
|
|
@@ -739,6 +759,9 @@ module.exports = {
|
|
|
739
759
|
cmsArticleDetail: (id) => {
|
|
740
760
|
return request('/cms/news/detail', true, 'get', { id })
|
|
741
761
|
},
|
|
762
|
+
cmsArticleDetailV2: (id, token = '') => {
|
|
763
|
+
return request('/cms/news/detail/v2', true, 'get', { id, token })
|
|
764
|
+
},
|
|
742
765
|
cmsArticlePreNext: (id) => {
|
|
743
766
|
return request('/cms/news/preNext', true, 'get', { id })
|
|
744
767
|
},
|
|
@@ -1052,6 +1075,12 @@ module.exports = {
|
|
|
1052
1075
|
code
|
|
1053
1076
|
})
|
|
1054
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
|
+
},
|
|
1055
1084
|
siteStatistics: () => {
|
|
1056
1085
|
return request('/site/statistics', true, 'get')
|
|
1057
1086
|
},
|
|
@@ -1542,4 +1571,13 @@ module.exports = {
|
|
|
1542
1571
|
userInvoiceBind: data => {
|
|
1543
1572
|
return request('/userInvoice/bind', true, 'post', data)
|
|
1544
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
|
+
},
|
|
1545
1583
|
}
|