优化每日推送和积分转化逻辑
This commit is contained in:
@@ -5,6 +5,7 @@ export const url = '/admin/mall.PlayxConfig/'
|
||||
export const actionUrl = new Map([
|
||||
['index', url + 'index'],
|
||||
['save', url + 'save'],
|
||||
['calculateLifetimePoints', url + 'calculateLifetimePoints'],
|
||||
])
|
||||
|
||||
export function index() {
|
||||
@@ -26,3 +27,15 @@ export function save(data: anyObj) {
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function calculateLifetimePoints() {
|
||||
return createAxios(
|
||||
{
|
||||
url: actionUrl.get('calculateLifetimePoints'),
|
||||
method: 'post',
|
||||
},
|
||||
{
|
||||
showSuccessMessage: true,
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user