更新 VIP 会员描述和产品 ID 逻辑,优化购买按钮样式以提升用户体验。
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user