更新 VIP 会员描述和产品 ID 逻辑,优化购买按钮样式以提升用户体验。

This commit is contained in:
Alex-larget
2026-02-26 14:58:37 +08:00
parent f5ee93dd84
commit 4f4e4407f7
2 changed files with 12 additions and 2 deletions

View File

@@ -244,6 +244,8 @@ func miniprogramPayPost(c *gin.Context) {
if description == "" {
if req.ProductType == "fullbook" {
description = "《一场Soul的创业实验》全书"
} else if req.ProductType == "vip" {
description = "卡若创业派对VIP年度会员365天"
} else if req.ProductType == "match" {
description = "购买匹配次数"
} else {
@@ -265,7 +267,14 @@ func miniprogramPayPost(c *gin.Context) {
productID := req.ProductID
if productID == "" {
productID = "fullbook"
switch req.ProductType {
case "vip":
productID = "vip_annual"
case "match":
productID = "match"
default:
productID = "fullbook"
}
}
status := "created"