@ -30,11 +30,11 @@ type Client struct {
appKey string // 渠道标记
}
log struct {
gormClient *dorm.GormClient // 日志数据库
gorm bool // 日志开关
logGormClient *golog.ApiClient // 日志服务
mongoClient *dorm.MongoClient // 日志数据库
mongo bool // 日志开关
logMongoClient *golog.ApiClient // 日志服务
@ -8,4 +8,4 @@ const (
logTable = "meituan"
)
const Version = "1.0.11"
const Version = "1.0.12"
@ -29,10 +29,10 @@ func (c *Client) request(ctx context.Context, url string, params map[string]inte
// 日志
if c.log.gorm == true {
if c.log.gorm {
go c.log.logGormClient.GormMiddleware(ctx, request, Version)
if c.log.mongo == true {
if c.log.mongo {
go c.log.logMongoClient.MongoMiddleware(ctx, request, Version)