chore: Waffo 网关默认币种改为 USD
与 pancake 商品链接 currency=USD 对齐。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f00ea7e873
commit
a47af22e91
1 file changed
+2
-2
@@ -282,7 +282,7 @@ func ensureWaffoPaymentGateway(db *gorm.DB) error {
|
|||||||
Gateway: "waffo",
|
Gateway: "waffo",
|
||||||
Enabled: true,
|
Enabled: true,
|
||||||
SandboxMode: true,
|
SandboxMode: true,
|
||||||
Currency: "CNY",
|
Currency: "USD",
|
||||||
Priority: 0,
|
Priority: 0,
|
||||||
}
|
}
|
||||||
if err := db.Create(&gw).Error; err != nil {
|
if err := db.Create(&gw).Error; err != nil {
|
||||||
@@ -291,7 +291,7 @@ func ensureWaffoPaymentGateway(db *gorm.DB) error {
|
|||||||
} else {
|
} else {
|
||||||
existing.Enabled = true
|
existing.Enabled = true
|
||||||
existing.SandboxMode = true
|
existing.SandboxMode = true
|
||||||
existing.Currency = "CNY"
|
existing.Currency = "USD"
|
||||||
existing.Priority = 0
|
existing.Priority = 0
|
||||||
if err := db.Save(&existing).Error; err != nil {
|
if err := db.Save(&existing).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in new issue
Block a user