diff --git a/api/system.js b/api/system.js index 641004b..3eb40ec 100644 --- a/api/system.js +++ b/api/system.js @@ -82,10 +82,13 @@ export const createTracking = async (data) => { }); }; -export const watchAdReward = async () => { +export const watchAdReward = async (token) => { return request({ url: "/api/blessing/ad/reward", method: "POST", + data: { + rewardToken: token, + }, }); }; diff --git a/components/RewardAd/RewardAd.vue b/components/RewardAd/RewardAd.vue index d9ad337..c0a583e 100644 --- a/components/RewardAd/RewardAd.vue +++ b/components/RewardAd/RewardAd.vue @@ -4,6 +4,7 @@