This commit is contained in:
蒋海成 2025-02-23 09:34:11 +08:00
parent 902ad2a6c7
commit 96222142c8
2 changed files with 2 additions and 2 deletions

View File

@ -33,4 +33,4 @@ TelNum = "18021272627"
Password = "Gy.123456"
[stripe]
Webhookkey = "we_1QuursAB1Vm8VfJquKmHQSVg"
Webhookkey = "whsec_5ru2Z9KsFixSvamAHgcvCBxufRTuHsyQ"

View File

@ -279,7 +279,7 @@ func PutBos(filePath string, mediaType string, needRemove bool) (url string, err
return
}
}
filePath = strings.Replace(filePath, "./runtime", "", 1)
filePath = strings.Replace(filePath, model.MediaPath, "", 1)
var objectName string = fmt.Sprintf("%s/%s%s", config.ConfigData.Oss.BaseDir, config.Env, filePath)
_, err = BOSClient.PutObjectFromBytes(config.ConfigData.Oss.BucketName, objectName, fileBytes)
if err != nil {