This commit is contained in:
Mrx
2026-06-06 11:52:06 +08:00
parent a79c464329
commit a85436950e
16 changed files with 864 additions and 25 deletions

View File

@@ -21,6 +21,7 @@ type Config struct {
WechatH5 WechatH5Config
Authorization AuthorizationConfig // 授权书配置
WechatMini WechatMiniConfig
WechatXpay WechatXpayConfig
Query QueryConfig
AdminConfig AdminConfig
TaxConfig TaxConfig
@@ -98,6 +99,18 @@ type WechatMiniConfig struct {
AppID string
AppSecret string
}
// WechatXpayConfig 微信小程序虚拟支付xpay
type WechatXpayConfig struct {
Enabled bool
Env int // 0 现网 / 1 沙箱
OfferId string
AppKey string // 与 Env 配套的 AppKey
ProdAppKey string // 现网 AppKey切换 env=0 时使用,可选)
MessagePushToken string
AdminToken string
SessionKeyTTL int64
}
type QueryConfig struct {
ShareLinkExpire int64
}