diff --git a/pages/avatar/index.vue b/pages/avatar/index.vue index 21a58e2..6c84907 100644 --- a/pages/avatar/index.vue +++ b/pages/avatar/index.vue @@ -691,9 +691,14 @@ const saveAndUse = async () => { const tempPath = await saveByCanvas(true); const id = createAvatarId(); - await saveRecordRequest(tempPath, id, "avatar_download"); + saveRecordRequest(tempPath, id, "avatar_download"); completeCardInfo(id); - userStore.fetchUserAssets(); + + if (userStore?.userInfo?.points >= 20) { + userStore.userInfo.points -= 20; + } + // userStore.fetchUserAssets(); + return; // 调用avatarDownloadRecord API记录下载次数 // await avatarDownloadRecord({