mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-20 11:39:18 +08:00
errcode
This commit is contained in:
parent
1ba5cde076
commit
1b4f6054ae
@ -15,6 +15,7 @@ import (
|
||||
"Open_IM/pkg/common/log"
|
||||
"Open_IM/pkg/common/middleware"
|
||||
"Open_IM/pkg/common/token_verify"
|
||||
"Open_IM/pkg/getcdv3"
|
||||
"Open_IM/pkg/utils"
|
||||
"flag"
|
||||
"fmt"
|
||||
@ -213,7 +214,7 @@ func main() {
|
||||
}
|
||||
//
|
||||
|
||||
go utils.RegisterConf()
|
||||
go getcdv3.RegisterConf()
|
||||
go apiThird.MinioInit()
|
||||
defaultPorts := config.Config.Api.GinPort
|
||||
ginPort := flag.Int("port", defaultPorts[0], "get ginServerPort from cmd,default 10002 as port")
|
||||
|
@ -1,7 +1,8 @@
|
||||
package utils
|
||||
package getcdv3
|
||||
|
||||
import (
|
||||
"Open_IM/pkg/common/config"
|
||||
"Open_IM/pkg/utils"
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/OpenIMSDK/getcdv3"
|
||||
@ -32,8 +33,8 @@ func RegisterConf() {
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
secretMD5 := Md5(config.Config.Etcd.Secret)
|
||||
confBytes, err := AesEncrypt(bytes, []byte(secretMD5[0:16]))
|
||||
secretMD5 := utils.Md5(config.Config.Etcd.Secret)
|
||||
confBytes, err := utils.AesEncrypt(bytes, []byte(secretMD5[0:16]))
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user