chore: 自动更新vip状态

This commit is contained in:
xiaojunnuo
2025-08-10 23:48:40 +08:00
parent 203d8bca57
commit fdbb8300d3
2 changed files with 12 additions and 10 deletions

View File

@@ -234,7 +234,9 @@ function openUpgrade() {
// const goBuyUrl = "https://afdian.com/a/greper"
const subjectId = settingStore.installInfo.siteId;
const appKey = settingStore.installInfo.appKey;
const goBuyUrl = `${env.VIP_PRODUCT_URL}?appKey=${appKey}&subjectId=${subjectId}`;
const location = window.location;
const callbackUrl = encodeURIComponent(`${location.origin}${location.pathname}#/sys/account`);
const goBuyUrl = `${env.VIP_PRODUCT_URL}?appKey=${appKey}&subjectId=${subjectId}&callback=${callbackUrl}`;
const productInfo = settingStore.productInfo;
const vipTypeDefine = {
free: {