apifm-webapi 26.8.4 → 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 +31 -25
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -248,10 +248,10 @@ module.exports = {
|
|
|
248
248
|
return request('/pay/wxfws/wxapp', true, 'post', data)
|
|
249
249
|
},
|
|
250
250
|
ttpay: (data) => {
|
|
251
|
-
return request('/pay/tt/microapp',
|
|
251
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/tt/microapp', false, 'post', data)
|
|
252
252
|
},
|
|
253
253
|
ttEcpay: (data) => {
|
|
254
|
-
return request('/pay/tt/ecpay',
|
|
254
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/tt/ecpay', false, 'post', data)
|
|
255
255
|
},
|
|
256
256
|
payQuery: (token, outTradeId) => {
|
|
257
257
|
return request('/pay/query', true, 'get', { token, outTradeId })
|
|
@@ -281,22 +281,22 @@ module.exports = {
|
|
|
281
281
|
return request('/pay/alipay/semiAutomatic/payurl', true, 'post', data)
|
|
282
282
|
},
|
|
283
283
|
alipayMP: (data) => {
|
|
284
|
-
return request('/pay/alipay/gate/mp',
|
|
284
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/alipay/gate/mp', false, 'post', data)
|
|
285
285
|
},
|
|
286
286
|
alipayAPP: (data) => {
|
|
287
|
-
return request('/pay/alipay/gate/app',
|
|
287
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/alipay/gate/app', false, 'post', data)
|
|
288
288
|
},
|
|
289
289
|
alipayQrcode: (data) => {
|
|
290
|
-
return request('/pay/alipay/gate/qrcode',
|
|
290
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/alipay/gate/qrcode', false, 'post', data)
|
|
291
291
|
},
|
|
292
292
|
alipayQrcode2: (data) => {
|
|
293
|
-
return request('/pay/alipay/gate/paymentCode',
|
|
293
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/alipay/gate/paymentCode', false, 'post', data)
|
|
294
294
|
},
|
|
295
295
|
alipayH5: (data) => {
|
|
296
|
-
return request('/pay/alipay/gate/h5',
|
|
296
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/alipay/gate/h5', false, 'post', data)
|
|
297
297
|
},
|
|
298
298
|
alipayPC: (data) => {
|
|
299
|
-
return request('/pay/alipay/gate/pc',
|
|
299
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/alipay/gate/pc', false, 'post', data)
|
|
300
300
|
},
|
|
301
301
|
kasipayH5: (data) => {
|
|
302
302
|
return request('/pay/kasipay/h5', true, 'post', data)
|
|
@@ -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)
|
|
@@ -1195,13 +1201,13 @@ module.exports = {
|
|
|
1195
1201
|
return request('/newsSign/check', true, 'get', { token, newsId })
|
|
1196
1202
|
},
|
|
1197
1203
|
invoiceList: (data) => {
|
|
1198
|
-
return request('/invoice/list',
|
|
1204
|
+
return request(COMMON_BASE_URL + subDomain + '/invoice/list', false, 'post', data)
|
|
1199
1205
|
},
|
|
1200
1206
|
invoiceApply: (data) => {
|
|
1201
|
-
return request('/invoice/apply',
|
|
1207
|
+
return request(COMMON_BASE_URL + subDomain + '/invoice/apply', false, 'post', data)
|
|
1202
1208
|
},
|
|
1203
1209
|
invoiceDetail: (token, id) => {
|
|
1204
|
-
return request('/invoice/info',
|
|
1210
|
+
return request(COMMON_BASE_URL + subDomain + '/invoice/info', false, 'get', { token, id })
|
|
1205
1211
|
},
|
|
1206
1212
|
depositList: (data) => {
|
|
1207
1213
|
return request('/deposit/list', true, 'post', data)
|
|
@@ -2437,13 +2443,13 @@ module.exports = {
|
|
|
2437
2443
|
return request('/bottleMsg/salvage', true, 'get', { token })
|
|
2438
2444
|
},
|
|
2439
2445
|
userInvoiceInfo: token => {
|
|
2440
|
-
return request('/userInvoice/info',
|
|
2446
|
+
return request(COMMON_BASE_URL + subDomain + '/userInvoice/info', false, 'get', { token })
|
|
2441
2447
|
},
|
|
2442
2448
|
userInvoiceUnbind: token => {
|
|
2443
|
-
return request('/userInvoice/unbind',
|
|
2449
|
+
return request(COMMON_BASE_URL + subDomain + '/userInvoice/unbind', false, 'post', { token })
|
|
2444
2450
|
},
|
|
2445
2451
|
userInvoiceBind: data => {
|
|
2446
|
-
return request('/userInvoice/bind',
|
|
2452
|
+
return request(COMMON_BASE_URL + subDomain + '/userInvoice/bind', false, 'post', data)
|
|
2447
2453
|
},
|
|
2448
2454
|
tempDataSet: (key, content) => {
|
|
2449
2455
|
return request('/tempData/set', true, 'post', { key, content })
|
|
@@ -2760,10 +2766,10 @@ module.exports = {
|
|
|
2760
2766
|
return request('/shopIot/execute', true, 'post', data)
|
|
2761
2767
|
},
|
|
2762
2768
|
wxTemplateNumberList: (token) => {
|
|
2763
|
-
return request('/wxTemplateNumber/list',
|
|
2769
|
+
return request(COMMON_BASE_URL + subDomain + '/wxTemplateNumber/list', false, 'get', { token })
|
|
2764
2770
|
},
|
|
2765
2771
|
wxTemplateNumberSubscribe: (data) => {
|
|
2766
|
-
return request('/wxTemplateNumber/subscribe',
|
|
2772
|
+
return request(COMMON_BASE_URL + subDomain + '/wxTemplateNumber/subscribe', false, 'post', data)
|
|
2767
2773
|
},
|
|
2768
2774
|
errandsTaskPublish: (data) => {
|
|
2769
2775
|
return request('/errandsTask/publish', true, 'post', data)
|