修复支付不跳转
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user