apifm-webapi 24.8.5 → 24.11.6
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 +28 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -54,12 +54,12 @@ baseRequest.interceptors.response.use(
|
|
|
54
54
|
)
|
|
55
55
|
|
|
56
56
|
const request = (url, needSubDomain, method, data) => {
|
|
57
|
-
let _url = (needSubDomain ? '/' + subDomain : '') + url
|
|
57
|
+
let _url = API_BASE_URL + (needSubDomain ? '/' + subDomain : '') + url
|
|
58
58
|
if (url.indexOf("http") == 0 ) {
|
|
59
59
|
_url = url
|
|
60
60
|
}
|
|
61
61
|
return baseRequest({
|
|
62
|
-
url:
|
|
62
|
+
url: _url,
|
|
63
63
|
needSubDomain: needSubDomain,
|
|
64
64
|
method: method,
|
|
65
65
|
params: method == 'get' || method == 'GET' ? data : {},
|
|
@@ -667,6 +667,9 @@ module.exports = {
|
|
|
667
667
|
token
|
|
668
668
|
})
|
|
669
669
|
},
|
|
670
|
+
orderCloseV2: data => {
|
|
671
|
+
return request('/order/close', true, 'post', data)
|
|
672
|
+
},
|
|
670
673
|
orderDelete: (token, orderId) => {
|
|
671
674
|
return request('/order/delete', true, 'post', {
|
|
672
675
|
orderId,
|
|
@@ -1300,6 +1303,9 @@ module.exports = {
|
|
|
1300
1303
|
scoreRankBydate: (data) => {
|
|
1301
1304
|
return request('/score/rankBydate', true, 'get', data)
|
|
1302
1305
|
},
|
|
1306
|
+
scoreMyStatistics: (data) => {
|
|
1307
|
+
return request('/score/myStatistics', true, 'get', data)
|
|
1308
|
+
},
|
|
1303
1309
|
voteItems: (data) => {
|
|
1304
1310
|
return request('/vote/items', true, 'post', data)
|
|
1305
1311
|
},
|
|
@@ -1352,11 +1358,17 @@ module.exports = {
|
|
|
1352
1358
|
token, joinId, extJsonStr
|
|
1353
1359
|
})
|
|
1354
1360
|
},
|
|
1361
|
+
yuyueLike: data => {
|
|
1362
|
+
return request('/yuyue/like', true, 'post', data)
|
|
1363
|
+
},
|
|
1355
1364
|
yuyueJoinDelete: (token, joinId) => {
|
|
1356
1365
|
return request('/yuyue/delJoin', true, 'post', {
|
|
1357
1366
|
token, id: joinId
|
|
1358
1367
|
})
|
|
1359
1368
|
},
|
|
1369
|
+
yuyueServered: data => {
|
|
1370
|
+
return request('/yuyue/servered', true, 'post', data)
|
|
1371
|
+
},
|
|
1360
1372
|
yuyueMyJoinInfo: (token, joinId) => {
|
|
1361
1373
|
return request('/yuyue/join/info', true, 'post', {
|
|
1362
1374
|
token, joinId
|
|
@@ -1374,7 +1386,7 @@ module.exports = {
|
|
|
1374
1386
|
yuyueTeamMembers: (data) => {
|
|
1375
1387
|
return request('/yuyue/info/team/members', true, 'post', data)
|
|
1376
1388
|
},
|
|
1377
|
-
yuyueTeamDeleteMember:
|
|
1389
|
+
yuyueTeamDeleteMember: data => {
|
|
1378
1390
|
return request('/yuyue/info/team/members/del', true, 'post', data)
|
|
1379
1391
|
},
|
|
1380
1392
|
register_email: (data) => {
|
|
@@ -1942,6 +1954,19 @@ module.exports = {
|
|
|
1942
1954
|
jicunGoodsDetail: data => {
|
|
1943
1955
|
return request('/jicunGoods/detail', true, 'get', data)
|
|
1944
1956
|
},
|
|
1957
|
+
// stripe
|
|
1958
|
+
stripeAddCard: function stripeAddCard(data) {
|
|
1959
|
+
return request('/pay/stripe/addCard', true, 'post', data);
|
|
1960
|
+
},
|
|
1961
|
+
stripeCardList: function stripeCardList(token) {
|
|
1962
|
+
return request('/pay/stripe/cardList', true, 'get', { token });
|
|
1963
|
+
},
|
|
1964
|
+
stripeDelCard: function stripeDelCard(token, cardId) {
|
|
1965
|
+
return request('/pay/stripe/deleteCard', true, 'post', { token, cardId });
|
|
1966
|
+
},
|
|
1967
|
+
stripeCharge: function stripeCharge(data) {
|
|
1968
|
+
return request('/pay/stripe/charge', true, 'post', data);
|
|
1969
|
+
},
|
|
1945
1970
|
// ocr
|
|
1946
1971
|
ocrBusinessLicense: imageUrl => {
|
|
1947
1972
|
return request('/ocr/businessLicense', true, 'post', { imageUrl })
|