fix: 修复支付页测试/生产 Product 映射串用与无法保存
切换环境时先暂存再切换;后端 Profile 不再串用另一侧商品;支持一键填充 OpsXshell 与跨环境复制,调试使用当前页映射。
This commit is contained in:
1 parent
9b79eabd34
commit
7c146cb639
5 files changed
+317
-71
No files matched your search
@@ -89,6 +89,7 @@ type WaffoProductMapping struct {
|
||||
PlanKey string `json:"plan_key"`
|
||||
Label string `json:"label,omitempty"`
|
||||
ProductID string `json:"product_id"`
|
||||
Currency string `json:"currency,omitempty"` // 如 CNY / USD,空则用全局默认 // Logan.Li
|
||||
}
|
||||
|
||||
// WaffoSettingsResponse 管理端 Waffo 配置(私钥不回显) // Logan.Li
|
||||
@@ -130,6 +131,8 @@ type WaffoSettingsUpdate struct {
|
||||
StoreSlug string `json:"store_slug"`
|
||||
Environment string `json:"environment"` // test | live | prod
|
||||
Currency string `json:"currency"`
|
||||
CurrencyYearly string `json:"currency_yearly"`
|
||||
CurrencyPerpetual string `json:"currency_perpetual"`
|
||||
ProductID string `json:"product_id"`
|
||||
ProductIDYearly string `json:"product_id_yearly"`
|
||||
ProductIDPerpetual string `json:"product_id_perpetual"`
|
||||
@@ -142,9 +145,16 @@ type WaffoSettingsUpdate struct {
|
||||
|
||||
// WaffoDebugRequest 用当前配置探测 create-session(可覆盖 plan/product) // Logan.Li
|
||||
type WaffoDebugRequest struct {
|
||||
PlanType string `json:"plan_type"` // yearly | perpetual | …,默认 yearly
|
||||
ProductID string `json:"product_id"` // 可选覆盖
|
||||
BuyerEmail string `json:"buyer_email"` // 可选
|
||||
PlanType string `json:"plan_type"` // yearly | perpetual | …,默认 yearly
|
||||
ProductID string `json:"product_id"` // 可选覆盖
|
||||
BuyerEmail string `json:"buyer_email"` // 可选
|
||||
Environment string `json:"environment"` // 可选:用页面当前环境覆盖 DB
|
||||
ProductIDYearly string `json:"product_id_yearly"`
|
||||
ProductIDPerpetual string `json:"product_id_perpetual"`
|
||||
ProductMappings []WaffoProductMapping `json:"product_mappings"`
|
||||
Currency string `json:"currency"`
|
||||
CurrencyYearly string `json:"currency_yearly"`
|
||||
CurrencyPerpetual string `json:"currency_perpetual"`
|
||||
}
|
||||
|
||||
// WaffoDebugResponse 调试结果摘要(绝不含私钥) // Logan.Li
|
||||
|
||||
Reference in new issue
Block a user