diff --git a/src/api/activity.js b/src/api/activity.js index 5a107a4..47999fa 100644 --- a/src/api/activity.js +++ b/src/api/activity.js @@ -13,9 +13,9 @@ export const getRankingListAndMyRanking = async (data) => { } // 获取本周奖励和礼物 -export const getThisWeekRewardsAndGifts = async (activityId) => { +export const getThisWeekRewardsAndGifts = async (templateId) => { try { - const response = await get(`/activity/king-queen/effective?templateId=${activityId}`) + const response = await get(`/activity/king-queen/effective?templateId=${templateId}`) return response } catch (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) => { try { 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 } catch (error) {