修改
This commit is contained in:
parent
902ad2a6c7
commit
96222142c8
@ -33,4 +33,4 @@ TelNum = "18021272627"
|
||||
Password = "Gy.123456"
|
||||
|
||||
[stripe]
|
||||
Webhookkey = "we_1QuursAB1Vm8VfJquKmHQSVg"
|
||||
Webhookkey = "whsec_5ru2Z9KsFixSvamAHgcvCBxufRTuHsyQ"
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user