feat(春节活动页面): 调整接口
This commit is contained in:
parent
92cc25ac07
commit
b4bdf3c78d
@ -98,6 +98,20 @@ export const activityRewardConfigs = async (data) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取礼物排行榜奖励列表.
|
||||||
|
export const apiGiftsRankingRewardConfigs = async (data) => {
|
||||||
|
try {
|
||||||
|
const response = await get(
|
||||||
|
`/props-activity-cnf/client/listActivityResource?sysOrigin=LIKEI&activityType=LUCKY_GIFT_REWARD`,
|
||||||
|
)
|
||||||
|
return response
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Failed to fetch get gifts ranking reward:', error)
|
||||||
|
console.error('error:' + error.response.errorMsg)
|
||||||
|
throw error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 获取剩余中奖券
|
// 获取剩余中奖券
|
||||||
export const myTickets = async (activityId) => {
|
export const myTickets = async (activityId) => {
|
||||||
try {
|
try {
|
||||||
@ -164,9 +178,9 @@ export const drawRecords = async (activityCode) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取历史中奖用户
|
// 获取历史中奖用户
|
||||||
export const winnerHistory = async () => {
|
export const winnerHistory = async (activityId) => {
|
||||||
try {
|
try {
|
||||||
const response = await get(`/activity/lottery/winner-history`)
|
const response = await get(`/activity/lottery/winner-history?activityId=${activityId}`)
|
||||||
return response
|
return response
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to fetch get winners:', error)
|
console.error('Failed to fetch get winners:', error)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user