fix: 修复收入统计 404,并隔离支付测试/生产配置
Dashboard 收入接口路径对齐;登录页去掉「授权管理平台」;Waffo 测试/生产密钥与 Product 映射分环境保存。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
76bba729f1
commit
9b79eabd34
9 files changed
+391
-80
No files matched your search
@@ -108,9 +108,20 @@ type WaffoSettingsResponse struct {
|
||||
SuccessURL string `json:"success_url"`
|
||||
WebhookURL string `json:"webhook_url"`
|
||||
PrivateKeyConfigured bool `json:"private_key_configured"`
|
||||
PrivateKeyByEnv map[string]bool `json:"private_key_configured_by_env"`
|
||||
Profiles map[string]WaffoEnvUI `json:"profiles"` // test/live 隔离的映射预览 // Logan.Li
|
||||
SourceHint string `json:"source_hint"` // db | env | mixed
|
||||
}
|
||||
|
||||
// WaffoEnvUI 单环境前端预览(无私钥) // Logan.Li
|
||||
type WaffoEnvUI struct {
|
||||
ProductMappings []WaffoProductMapping `json:"product_mappings"`
|
||||
ProductID string `json:"product_id"`
|
||||
ProductIDYearly string `json:"product_id_yearly"`
|
||||
ProductIDPerpetual string `json:"product_id_perpetual"`
|
||||
PrivateKeyConfigured bool `json:"private_key_configured"`
|
||||
}
|
||||
|
||||
// WaffoSettingsUpdate 管理端更新 Waffo 配置;private_key 空=保留原值 // Logan.Li
|
||||
type WaffoSettingsUpdate struct {
|
||||
Enabled *bool `json:"enabled"`
|
||||
|
||||
Reference in new issue
Block a user