diff --git a/apps/user/app/(main)/(content)/(user)/subscribe/page.tsx b/apps/user/app/(main)/(content)/(user)/subscribe/page.tsx index 79b8f94..8dd0da6 100644 --- a/apps/user/app/(main)/(content)/(user)/subscribe/page.tsx +++ b/apps/user/app/(main)/(content)/(user)/subscribe/page.tsx @@ -33,7 +33,7 @@ export default function Page() { origin_price: unitConversion('centsToDollars', item.unit_price * 12).toString(), // 原价 discount_price: unitConversion( 'centsToDollars', - item.unit_price * ((discountItem?.discount || 100) / 100) * 12, + item.unit_price * ((100 - discountItem?.discount || 100) / 100) * 12, ).toString(), // 优惠价格 }; } else { diff --git a/apps/user/components/main/OfferDialog/index.tsx b/apps/user/components/main/OfferDialog/index.tsx index 4a3defe..1268169 100644 --- a/apps/user/components/main/OfferDialog/index.tsx +++ b/apps/user/components/main/OfferDialog/index.tsx @@ -372,7 +372,7 @@ const OfferDialog = forwardRef((props, ref) => { origin_price: unitConversion('centsToDollars', item.unit_price * 12).toString(), // 原价 discount_price: unitConversion( 'centsToDollars', - item.unit_price * ((discountItem?.discount || 100) / 100) * 12, + item.unit_price * ((100 - discountItem?.discount || 100) / 100) * 12, ).toString(), // 优惠价格 }; } else { diff --git a/apps/user/locales/en-US/common.json b/apps/user/locales/en-US/common.json index c1c0397..68d6afc 100644 --- a/apps/user/locales/en-US/common.json +++ b/apps/user/locales/en-US/common.json @@ -48,6 +48,7 @@ "60003": "An existing subscription is detected. Please cancel it before proceeding.", "60004": "Unable to delete at the moment as the subscription has active users.", "60005": "Single subscription mode has exceeded user limit.", + "60006": "Subscribe quota limit", "70001": "Incorrect verification code, please re-enter.", "80001": "Task could not be successfully added to the queue, please try again later.", "90001": "Please disable DEBUG mode and try again.", diff --git a/apps/user/locales/zh-CN/common.json b/apps/user/locales/zh-CN/common.json index 9b65488..091030e 100644 --- a/apps/user/locales/zh-CN/common.json +++ b/apps/user/locales/zh-CN/common.json @@ -48,6 +48,7 @@ "60003": "检测到已有订阅。请取消后再继续。", "60004": "暂时无法删除,订阅存在正常激活的用户。", "60005": "单一订阅模式已超出用户上限。", + "60006": "订阅数量超过限制", "70001": "验证码有误,请重新输入。", "80001": "任务未成功加入队列,请稍后重试。", "90001": "请关闭调试模式后重试",