Ver código fonte

update

master
dengbiao 3 semanas atrás
pai
commit
fbaa6c27a1
1 arquivos alterados com 0 adições e 8 exclusões
  1. +0
    -8
      svc/svc_file_img_format.go

+ 0
- 8
svc/svc_file_img_format.go Ver arquivo

@@ -1,10 +1,8 @@
package svc package svc


import ( import (
"code.fnuoos.com/EggPlanet/egg_models.git/src/dao"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement" "code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"code.fnuoos.com/EggPlanet/egg_system_rules.git/enum" "code.fnuoos.com/EggPlanet/egg_system_rules.git/enum"
zhios_order_relate_logx "code.fnuoos.com/EggPlanet/egg_system_rules.git/utils/logx"
"fmt" "fmt"
"github.com/gomodule/redigo/redis" "github.com/gomodule/redigo/redis"
"strings" "strings"
@@ -14,12 +12,6 @@ import (
// ImageBucket is 获取域名 // ImageBucket is 获取域名
func ImageBucket(engine *xorm.Engine, conn redis.Conn) (string, string) { func ImageBucket(engine *xorm.Engine, conn redis.Conn) (string, string) {
sysCfgDb := implement.NewSysCfgDb(engine, conn) sysCfgDb := implement.NewSysCfgDb(engine, conn)
defer func(sysCfgDb dao.SysCfgDao) {
err := sysCfgDb.Close()
if err != nil {
zhios_order_relate_logx.Error("redis close err:" + err.Error()) // 记录错误信息
}
}(sysCfgDb)
res := sysCfgDb.SysCfgFindWithDb(enum.AliyunOssBucketScheme, enum.AliyunOssDomain) res := sysCfgDb.SysCfgFindWithDb(enum.AliyunOssBucketScheme, enum.AliyunOssDomain)
return res[enum.AliyunOssBucketScheme], res[enum.AliyunOssDomain] return res[enum.AliyunOssBucketScheme], res[enum.AliyunOssDomain]
} }


Carregando…
Cancelar
Salvar