Commit 07569212 authored by Bess严根旺's avatar Bess严根旺

修改

parent e64bc432
......@@ -45,21 +45,18 @@ type Conversion struct {
// GetBucket 获取bucket信息
func (o *Conversion) GetBucket(isPrivate bool) string {
config, iniErr := ini.Load("domain/conf/app.ini")
/*config, iniErr := ini.Load("domain/conf/app.ini")
if iniErr != nil {
fmt.Println("Fail to read file")
log.Error("Fail to read file: %v")
os.Exit(1)
}
bucketPrivate := config.Section("AliYun").Key("bucketPrivate").String()
bucketPub := config.Section("AliYun").Key("bucketPub").String()
fmt.Println(bucketPub)
bucketPub := config.Section("AliYun").Key("bucketPub").String()*/
if isPrivate {
return "oss://" + bucketPrivate
return "oss://" + "test-bucket-v1"
}
return "oss://" + bucketPub
return "oss://" + "test-bucket-v1-pub"
}
type DoConversionRequest struct {
......@@ -121,8 +118,8 @@ func (o *Conversion) checkGetTaskParam(arg GetTaskRequest) error {
func NewConversion() *Conversion {
config, iniErr := ini.Load("domain/conf/app.ini")
if iniErr != nil {
fmt.Println("Fail to read file")
log.Error("Fail to read file: %v")
fmt.Println("Fail to read file111")
log.Error("Fail to read file111 : %v")
os.Exit(1)
}
host := config.Section("AliYun").Key("host").String()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment