master v1.0.97
李光春 2 years ago
parent a2030c149f
commit 5e72ef4cd4

@ -61,7 +61,6 @@ func NewApiClient(config *ApiClientConfig) (*ApiClient, error) {
if config.CurrentIp != "" && config.CurrentIp != "0.0.0.0" {
c.config.systemOutsideIp = config.CurrentIp
}
if c.config.systemOutsideIp == "" {
return nil, currentIpNoConfig
}

@ -1,5 +1,5 @@
package golog
const (
Version = "1.0.96"
Version = "1.0.97"
)

@ -55,6 +55,7 @@ type GinClientConfig struct {
GormClientFun dorm.GormClientTableFun // 日志配置
MongoClientFun dorm.MongoClientCollectionFun // 日志配置
ZapLog *ZapLog // 日志服务
CurrentIp string // 当前ip
}
// NewGinClient 创建框架实例化
@ -66,6 +67,13 @@ func NewGinClient(config *GinClientConfig) (*GinClient, error) {
c.zapLog = config.ZapLog
if config.CurrentIp != "" && config.CurrentIp != "0.0.0.0" {
c.config.systemOutsideIp = config.CurrentIp
}
if c.config.systemOutsideIp == "" {
return nil, currentIpNoConfig
}
c.ipService = config.IpService
// 配置信息

Loading…
Cancel
Save