Compare commits
No commits in common. "df06768936d09fe537a4b80061d64740d7c02237" and "29d6a2e022687e47fc8d01aaae5694d25adf3aa1" have entirely different histories.
df06768936
...
29d6a2e022
@ -363,7 +363,7 @@ func PutBosWithName(filePath string, needRemove bool, ossPath string) (url strin
|
||||
if ossPath == "" {
|
||||
ossPath = filePath[1:]
|
||||
}
|
||||
var objectName string = fmt.Sprintf("%s/%s%s", config.ConfigData.Oss.BaseDir, config.AppMode, ossPath)
|
||||
var objectName string = fmt.Sprintf("%s/%s%s", os.Getenv(config.ConfigData.Oss.BaseDir), config.Env, ossPath)
|
||||
_, err = BOSClient.PutObject(os.Getenv(config.ConfigData.Oss.BucketName), objectName, filePath)
|
||||
//_, err = BOSClient.PutObject(config.ConfigData.Oss.BucketName, objectName, filePath)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user