master
李光春 2 years ago
parent eed36cdcea
commit 35e4481b01

@ -30,9 +30,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -26,9 +26,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -31,9 +31,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -36,9 +36,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -37,9 +37,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -23,9 +23,12 @@ func (c *Client) request(url string, params map[string]interface{}) (gorequest.R
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -27,9 +27,12 @@ func (c *Client) request(params map[string]interface{}) (gorequest.Response, err
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(gostring.ToString(params["method"]), request) go c.postgresqlLog(gostring.ToString(params["method"]), request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(gostring.ToString(params["method"]), request)
}
return request, err return request, err
} }

@ -33,9 +33,12 @@ func (c *Client) request(url string, params map[string]interface{}) (gorequest.R
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -43,9 +43,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -26,9 +26,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -17,12 +17,12 @@ func (c *Client) request(url string) (gorequest.Response, error) {
} }
// 日志 // 日志
if c.config.PgsqlDb != nil {
go c.postgresqlLog(request)
}
if c.config.MongoDb != nil { if c.config.MongoDb != nil {
go c.mongoLog(request) go c.mongoLog(request)
} }
if c.logStatus == true {
go c.postgresqlLog(request)
}
return request, err return request, err
} }

@ -23,9 +23,12 @@ func (c *Client) request(params map[string]interface{}) (gorequest.Response, err
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(gostring.ToString(params["type"]), request) go c.postgresqlLog(gostring.ToString(params["type"]), request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(gostring.ToString(params["type"]), request)
}
return request, err return request, err
} }

@ -34,9 +34,12 @@ func (c *Client) request(url string, params map[string]interface{}) (gorequest.R
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -31,9 +31,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -23,9 +23,12 @@ func (c *Client) request(params map[string]interface{}) (gorequest.Response, err
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(gostring.ToString(params["method"]), request) go c.postgresqlLog(gostring.ToString(params["method"]), request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(gostring.ToString(params["method"]), request)
}
return request, err return request, err
} }

@ -27,9 +27,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -27,9 +27,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -26,9 +26,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -29,9 +29,12 @@ func (c *Client) request(url string, params map[string]interface{}, cert *tls.Ce
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -51,9 +51,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -37,9 +37,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -22,9 +22,12 @@ func (c *Client) request(url string, params map[string]interface{}) (gorequest.R
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -27,9 +27,12 @@ func (c *Client) request(url string, params map[string]interface{}, method strin
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -20,9 +20,12 @@ func (c *Client) request(url string) (gorequest.Response, error) {
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

@ -30,9 +30,12 @@ func (c *Client) request(url string, params map[string]interface{}) (gorequest.R
} }
// 日志 // 日志
if c.logStatus == true { if c.config.PgsqlDb != nil {
go c.postgresqlLog(request) go c.postgresqlLog(request)
} }
if c.config.MongoDb != nil {
go c.mongoLog(request)
}
return request, err return request, err
} }

Loading…
Cancel
Save