apifm-webapi 26.8.22 → 26.8.29
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 +14 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -236,13 +236,13 @@ module.exports = {
|
|
|
236
236
|
return request('/pay/wx/requestMerchantTransfer', true, 'get', data);
|
|
237
237
|
},
|
|
238
238
|
wxpayFOMO: (data) => {
|
|
239
|
-
return request('/pay/fomo/wxapp',
|
|
239
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/fomo/wxapp', false, 'post', data)
|
|
240
240
|
},
|
|
241
241
|
payNow: (data) => {
|
|
242
|
-
return request('/pay/fomo/payNow',
|
|
242
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/fomo/payNow', false, 'post', data)
|
|
243
243
|
},
|
|
244
244
|
fomoCheckout: (data) => {
|
|
245
|
-
return request('/pay/fomo/checkout',
|
|
245
|
+
return request(COMMON_BASE_URL + subDomain + '/pay/fomo/checkout', false, 'post', data)
|
|
246
246
|
},
|
|
247
247
|
wxpayFWS: (data) => {
|
|
248
248
|
return request('/pay/wxfws/wxapp', true, 'post', data)
|
|
@@ -335,10 +335,10 @@ module.exports = {
|
|
|
335
335
|
return request('/user/wxapp/getMobile', true, 'get', { code })
|
|
336
336
|
},
|
|
337
337
|
login_username: (data) => {
|
|
338
|
-
return request('/user/username/login',
|
|
338
|
+
return request(COMMON_BASE_URL + subDomain + '/user/username/login', false, 'post', data)
|
|
339
339
|
},
|
|
340
340
|
bindUsername: (token, username, pwd = '') => {
|
|
341
|
-
return request('/user/username/bindUsername',
|
|
341
|
+
return request(COMMON_BASE_URL + subDomain + '/user/username/bindUsername', false, 'post', {
|
|
342
342
|
token, username, pwd
|
|
343
343
|
})
|
|
344
344
|
},
|
|
@@ -373,7 +373,7 @@ module.exports = {
|
|
|
373
373
|
return request('/user/wxapp/register/simple', true, 'post', data)
|
|
374
374
|
},
|
|
375
375
|
register_username: (data) => {
|
|
376
|
-
return request('/user/username/register',
|
|
376
|
+
return request(COMMON_BASE_URL + subDomain + '/user/username/register', false, 'post', data)
|
|
377
377
|
},
|
|
378
378
|
register_mobile: (data) => {
|
|
379
379
|
return request('/user/m/register', true, 'post', data)
|
|
@@ -1318,7 +1318,7 @@ module.exports = {
|
|
|
1318
1318
|
return request('/user/modify/password', true, 'post', { token, pwdOld, pwdNew })
|
|
1319
1319
|
},
|
|
1320
1320
|
modifyUserPasswordByUserName: (data) => {
|
|
1321
|
-
return request('/user/username/modifyPassword',
|
|
1321
|
+
return request(COMMON_BASE_URL + subDomain + '/user/username/modifyPassword', false, 'post', data)
|
|
1322
1322
|
},
|
|
1323
1323
|
anonymousUserInfo: (id) => {
|
|
1324
1324
|
return request('/user/anonymous/info', true, 'get', { id })
|
|
@@ -1995,6 +1995,12 @@ module.exports = {
|
|
|
1995
1995
|
partnerWithdrawalLogRefuse: data => {
|
|
1996
1996
|
return request(COMMON_BASE_URL + subDomain + '/partner/withdrawalLog/refuse', false, 'post', data)
|
|
1997
1997
|
},
|
|
1998
|
+
liveRoomOnlineUsers: (token, roomId) => {
|
|
1999
|
+
return request('/websocket/rest/liveRoom/onlines', false, 'get', { token, roomId })
|
|
2000
|
+
},
|
|
2001
|
+
liveRoomKickOutUser: (token, roomId, uid) => {
|
|
2002
|
+
return request('/websocket/rest/liveRoom/kickOut', false, 'post', { token, roomId, uid })
|
|
2003
|
+
},
|
|
1998
2004
|
wxaMpLiveRooms: () => {
|
|
1999
2005
|
return request(COMMON_BASE_URL + subDomain + '/wx/live/rooms', false, 'get')
|
|
2000
2006
|
},
|
|
@@ -2652,7 +2658,7 @@ module.exports = {
|
|
|
2652
2658
|
return request('/shopCategory/info', true, 'get', { id })
|
|
2653
2659
|
},
|
|
2654
2660
|
contactList: () => {
|
|
2655
|
-
return request('/contact/list',
|
|
2661
|
+
return request(COMMON_BASE_URL + subDomain + '/contact/list', false, 'get')
|
|
2656
2662
|
},
|
|
2657
2663
|
distributedLock: (key, seconds) => {
|
|
2658
2664
|
return request('/distributedLock/lock', true, 'get', { key, seconds })
|