apifm-webapi 25.12.8 → 25.12.14
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 +10 -4
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -130,6 +130,12 @@ module.exports = {
|
|
|
130
130
|
token
|
|
131
131
|
})
|
|
132
132
|
},
|
|
133
|
+
scoreExchangeCash: (token, deductionScore) => {
|
|
134
|
+
return request(COMMON_BASE_URL + subDomain + '/score/exchange/cash', false, 'post', {
|
|
135
|
+
deductionScore,
|
|
136
|
+
token
|
|
137
|
+
})
|
|
138
|
+
},
|
|
133
139
|
scoreLogs: (data) => {
|
|
134
140
|
return request('/score/logs', true, 'post', data)
|
|
135
141
|
},
|
|
@@ -144,10 +150,10 @@ module.exports = {
|
|
|
144
150
|
})
|
|
145
151
|
},
|
|
146
152
|
scoreTaskList: token => {
|
|
147
|
-
return request('/score/taskList',
|
|
153
|
+
return request(COMMON_BASE_URL + subDomain + '/score/taskList', false, 'get', { token })
|
|
148
154
|
},
|
|
149
155
|
scoreTaskSuccess: (token, type) => {
|
|
150
|
-
return request('/score/taskSuccess',
|
|
156
|
+
return request(COMMON_BASE_URL + subDomain + '/score/taskSuccess', false, 'post', { token, type })
|
|
151
157
|
},
|
|
152
158
|
kanjiaSet: (goodsId) => {
|
|
153
159
|
return request('/shop/goods/kanjia/set', true, 'get', { goodsId })
|
|
@@ -904,7 +910,7 @@ module.exports = {
|
|
|
904
910
|
return request('/config/vipLevel', true, 'get')
|
|
905
911
|
},
|
|
906
912
|
fxSetting: () => {
|
|
907
|
-
return request('/saleDistribution/setting', true, 'get')
|
|
913
|
+
return request(COMMON_BASE_URL + subDomain + '/saleDistribution/setting', true, 'get')
|
|
908
914
|
},
|
|
909
915
|
fxApply: (token, name, mobile) => {
|
|
910
916
|
return request('/saleDistribution/apply', true, 'post', { token, name, mobile })
|
|
@@ -1512,7 +1518,7 @@ module.exports = {
|
|
|
1512
1518
|
})
|
|
1513
1519
|
},
|
|
1514
1520
|
scoreDeductionRules: () => {
|
|
1515
|
-
return request('/score/deduction/rules',
|
|
1521
|
+
return request(COMMON_BASE_URL + subDomain + '/score/deduction/rules', false, 'get', {})
|
|
1516
1522
|
},
|
|
1517
1523
|
scoreDailyFixedNum: token => {
|
|
1518
1524
|
return request('/score/dailyFixedNum', true, 'post', { token })
|