feat(活动接口文件): 调整接口参数
This commit is contained in:
parent
d4b80f0ea5
commit
5311d89076
@ -13,9 +13,9 @@ export const getRankingListAndMyRanking = async (data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取本周奖励和礼物
|
// 获取本周奖励和礼物
|
||||||
export const getThisWeekRewardsAndGifts = async (activityId) => {
|
export const getThisWeekRewardsAndGifts = async (templateId) => {
|
||||||
try {
|
try {
|
||||||
const response = await get(`/activity/king-queen/effective?templateId=${activityId}`)
|
const response = await get(`/activity/king-queen/effective?templateId=${templateId}`)
|
||||||
return response
|
return response
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to get this week rewards and gifts:', error)
|
console.error('Failed to get this week rewards and gifts:', error)
|
||||||
@ -41,7 +41,7 @@ export const getHistoryTopOne = async (activityType) => {
|
|||||||
export const activityResource = async (data) => {
|
export const activityResource = async (data) => {
|
||||||
try {
|
try {
|
||||||
const response = await get(
|
const response = await get(
|
||||||
`/props-activity-cnf/client/listActivityResource?sysOrigin=${data.sysOrigin}&activityType=${data.activityType}`
|
`/props-activity-cnf/client/listActivityResource?sysOrigin=${data.sysOrigin}&activityType=${data.activityType}`,
|
||||||
)
|
)
|
||||||
return response
|
return response
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user