|
@@ -5,6 +5,7 @@ import ( |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/db" |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/db" |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/md" |
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/md" |
|
|
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" |
|
|
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" |
|
|
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils/cache" |
|
|
"fmt" |
|
|
"fmt" |
|
|
"github.com/mvdan/xurls" |
|
|
"github.com/mvdan/xurls" |
|
|
"regexp" |
|
|
"regexp" |
|
@@ -13,6 +14,14 @@ import ( |
|
|
"xorm.io/xorm" |
|
|
"xorm.io/xorm" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func Init(redisAddr string) (err error) { |
|
|
|
|
|
if redisAddr != "" { |
|
|
|
|
|
cache.NewRedis(redisAddr) |
|
|
|
|
|
} |
|
|
|
|
|
_, err = cache.SelectDb(md.RedisDataBase) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
func TurnChain(eg *xorm.Engine, officialEg, zhimengEg *xorm.Engine, args map[string]string) md.TCPrase { |
|
|
func TurnChain(eg *xorm.Engine, officialEg, zhimengEg *xorm.Engine, args map[string]string) md.TCPrase { |
|
|
dbName := args["master_id"] |
|
|
dbName := args["master_id"] |
|
|
var tcPrase md.TCPrase |
|
|
var tcPrase md.TCPrase |
|
|