修复支付不跳转

This commit is contained in:
2026-09-28 22:17:18 +08:00
parent 92403171d4
commit 7c75edcc61
8 changed files with 113 additions and 6 deletions
+3 -1
View File
@@ -384,7 +384,9 @@ func (c *PlatformPaymentController) UploadCertificate() {
}
defer func() { _ = file.Close() }()
dir := filepath.Join("certs", "payment", channel)
// 落盘目录:payment_cert_dir 配置优先,未配置时用相对工作目录的 certs/payment/<渠道>。
// 入库保持相对路径——本地开发与线上可能共用同一个库,存绝对路径会互相覆盖对方环境。
dir := payment.CertDir(channel)
if err := os.MkdirAll(dir, 0o700); err != nil {
c.jsonErr(500, 500, "创建证书目录失败: "+err.Error())
return