diff --git a/.env.development b/.env.development index 419a9f5..b8abc9c 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ # API -# VUE_APP_API_URL = 'https://oauth-svr.cebggame.com/task' -VUE_APP_API_URL = 'http://192.168.100.22:3006' +VUE_APP_API_URL = 'https://oauth-svr.cebggame.com/task' +# VUE_APP_API_URL = 'http://192.168.100.22:3006' # VUE_APP_API_URL = 'http://127.0.0.1:3006/api' VUE_APP_WL_URL = 'https://nftwl.counterfire.games/wl_test' VUE_APP_CONFIG_URL = 'https://sepolia.infura.io/v3/b6bf7d3508c941499b10025c0776eaf8' diff --git a/src/utils/webapi.js b/src/utils/webapi.js index 583c643..2919d79 100644 --- a/src/utils/webapi.js +++ b/src/utils/webapi.js @@ -262,3 +262,9 @@ export const apiNftList = async () => { const url = `${API_BASE}/api/partner/nfts`; return httpPost(url, {}) } + +// 领取NFT holder 奖励 +export const apiClaimNft = async (contract) => { + const url = `${API_BASE}/api/partner/claim`; + return httpPost(url, {contract}) +} diff --git a/src/views/home/index.vue b/src/views/home/index.vue index f80da0d..e69c15d 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -455,7 +455,7 @@