nft 合作

This commit is contained in:
yuyongdong 2024-04-17 18:45:32 +08:00
parent 8218871fd8
commit efa0f668d6
2 changed files with 20 additions and 1 deletions

View File

@ -268,3 +268,9 @@ export const apiClaimNft = async (contract) => {
const url = `${API_BASE}/api/partner/claim`;
return httpPost(url, {contract})
}
// 宝箱激活码
export const apiVoucherClaim = async (id) => {
const url = `${API_BASE}/api/voucher/claim`;
return httpPost(url, {id})
}

View File

@ -1359,10 +1359,23 @@ export default {
// nft
submitCode() {
// "testoVC6BT0f"
// 1
// :
// "testZ5bxiJNF"
// 2
// :
// "testCFLg58et"
// 3
// :
// "testjVmKtkEN"
// 4
// :
// "testZuX1lyLj"
if (this.token) {
console.log(this.checkCodeInput);
if (this.checkCodeInput) {
// Todo
} else {
alert("不能为空");
}